Ejemplo n.º 1
0
 /// <summary>Initializes a new instance of the <see cref="CSharpGenerator"/> class.</summary>
 /// <param name="schema">The schema.</param>
 /// <param name="settings">The generator settings.</param>
 /// <param name="resolver">The resolver.</param>
 /// <param name="rootObject">The root object to search for all JSON Schemas.</param>
 public CSharpGenerator(JsonSchema4 schema, CSharpGeneratorSettings settings, CSharpTypeResolver resolver, object rootObject)
     : base(schema, rootObject)
 {
     _schema   = schema;
     _resolver = resolver;
     Settings  = settings;
 }
Ejemplo n.º 2
0
 /// <summary>Initializes a new instance of the <see cref="CSharpGenerator"/> class.</summary>
 /// <param name="rootObject">The root object to search for all JSON Schemas.</param>
 /// <param name="settings">The generator settings.</param>
 /// <param name="resolver">The resolver.</param>
 public CSharpGenerator(object rootObject, CSharpGeneratorSettings settings, CSharpTypeResolver resolver)
     : base(rootObject, resolver, settings)
 {
     _resolver = resolver;
     Settings  = settings;
 }
Ejemplo n.º 3
0
 /// <summary>Initializes a new instance of the <see cref="CSharpGenerator"/> class.</summary>
 /// <param name="schema">The schema.</param>
 /// <param name="settings">The generator settings.</param>
 /// <param name="resolver">The resolver.</param>
 public CSharpGenerator(JsonSchema4 schema, CSharpGeneratorSettings settings, CSharpTypeResolver resolver)
 {
     _schema   = schema;
     _resolver = resolver;
     Settings  = settings;
 }
Ejemplo n.º 4
0
 /// <summary>Initializes a new instance of the <see cref="CSharpGenerator"/> class.</summary>
 /// <param name="schema">The schema.</param>
 /// <param name="resolver">The resolver.</param>
 public CSharpGenerator(JsonSchema4 schema, CSharpTypeResolver resolver)
 {
     _schema   = schema;
     _resolver = resolver;
 }