CompileTo() public method

public CompileTo ( IEnumerable schemas, Stream stream, string rootNamespace = null ) : void
schemas IEnumerable
stream Stream
rootNamespace string
return void
 private static void CompileToAssembly(JsonSchemaCodeGenerator codeGenerator, IEnumerable<JSchema> schemas, string outputAssembly, string rootNamespace = null)
 {
     using (var stream = new FileStream(outputAssembly, FileMode.Create))
     {
         codeGenerator.CompileTo(schemas, stream, rootNamespace);
     }
 }
示例#2
0
 private static void CompileToAssembly(JsonSchemaCodeGenerator codeGenerator, IEnumerable <JSchema> schemas, string outputAssembly, string rootNamespace = null)
 {
     using (var stream = new FileStream(outputAssembly, FileMode.Create))
     {
         codeGenerator.CompileTo(schemas, stream, rootNamespace);
     }
 }