/// <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; }
/// <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; }
/// <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)) { }
/// <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) { }