コード例 #1
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;
 }
コード例 #2
0
 /// <summary>Initializes a new instance of the <see cref="CSharpTypeResolver"/> class.</summary>
 /// <param name="settings">The generator settings.</param>
 /// <param name="exceptionSchema">The exception type schema.</param>
 public CSharpTypeResolver(CSharpGeneratorSettings settings, JsonSchema4 exceptionSchema)
     : base(settings)
 {
     Settings        = settings;
     ExceptionSchema = exceptionSchema;
 }
コード例 #3
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>
 public CSharpGenerator(object rootObject, CSharpGeneratorSettings settings)
     : this(rootObject, settings, new CSharpTypeResolver(settings))
 {
 }
コード例 #4
0
 /// <summary>Initializes a new instance of the <see cref="CSharpTypeResolver"/> class.</summary>
 /// <param name="settings">The generator settings.</param>
 public CSharpTypeResolver(CSharpGeneratorSettings settings)
     : this(settings, null)
 {
 }