Skip to content
Rico Suter edited this page Apr 18, 2016 · 11 revisions

The CSharpGenerator class generates C# DTO classes from a given JSON Schema:

var schema = JsonSchema4.FromType<Person>();
var settings = new CSharpGeneratorSettings();
var generator = new CSharpGenerator(schema, settings);
var code = generator.GenerateFile();

Settings

The settings can be provided via an instance of CSharpGeneratorSettings.

More information: CSharpGeneratorSettings.cs

Clone this wiki locally