C# Класс TerrificNet.Generator.JsonSchemaCodeGenerator

Наследование: IJsonSchemaCodeGenerator
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Compile ( Newtonsoft.Json.Schema.JSchema schema ) : Type
CompileTo ( IEnumerable schemas, Stream stream, string rootNamespace = null ) : void
Generate ( Newtonsoft.Json.Schema.JSchema schema ) : string
JsonSchemaCodeGenerator ( ) : System
JsonSchemaCodeGenerator ( INamingRule namingRule ) : System
WriteTo ( IEnumerable schemas, Stream stream, string rootNamespace = null ) : void

Приватные методы

Метод Описание
CompileToInternal ( IEnumerable schemas, Stream stream, string rootNamespace = null ) : EmitResult
GetRootNamespace ( IEnumerable schemas, string rootNamespace ) : SyntaxList
GetSyntax ( Newtonsoft.Json.Schema.JSchema schema ) : CompilationUnitSyntax
GetSyntaxTree ( IEnumerable schemas, string rootNamespace = null ) : SyntaxTree

Описание методов

Compile() публичный Метод

public Compile ( Newtonsoft.Json.Schema.JSchema schema ) : Type
schema Newtonsoft.Json.Schema.JSchema
Результат System.Type

CompileTo() публичный Метод

public CompileTo ( IEnumerable schemas, Stream stream, string rootNamespace = null ) : void
schemas IEnumerable
stream Stream
rootNamespace string
Результат void

Generate() публичный Метод

public Generate ( Newtonsoft.Json.Schema.JSchema schema ) : string
schema Newtonsoft.Json.Schema.JSchema
Результат string

JsonSchemaCodeGenerator() публичный Метод

public JsonSchemaCodeGenerator ( ) : System
Результат System

JsonSchemaCodeGenerator() публичный Метод

public JsonSchemaCodeGenerator ( INamingRule namingRule ) : System
namingRule INamingRule
Результат System

WriteTo() публичный Метод

public WriteTo ( IEnumerable schemas, Stream stream, string rootNamespace = null ) : void
schemas IEnumerable
stream Stream
rootNamespace string
Результат void