Пример #1
0
        public static string CompileFromJson(string json, string defaultNamespace)
        {
            var      compiler = new TLSchemaCompiler(defaultNamespace);
            TLSchema schema   = compiler.GetTLSchemaFromJson(json);

            return(compiler.Compile(schema));
        }
Пример #2
0
        public static string CompileFromTL(string tl, string defaultNamespace)
        {
            var      compiler = new TLSchemaCompiler(defaultNamespace);
            TLSchema schema   = compiler.GetTLSchemaFromTL(tl);

            return(compiler.Compile(schema));
        }