예제 #1
0
        protected string Compile(TLSchema schema)
        {
            SetBuiltInTypeNames(schema);
            FixVoidReturns(schema);

            var template = new SharpTLDefaultTemplate(new TemplateVars {
                Schema = schema, Namespace = _defaultNamespace
            });

            return(template.TransformText());
        }
예제 #2
0
        public string Compile(CompilationParams compilationParams)
        {
            var template =
                new SharpTLDefaultTemplate(new TemplateVars
            {
                Schema               = this,
                Namespace            = compilationParams.Namespace,
                MethodsInterfaceName = compilationParams.MethodsInterfaceName
            });

            return(template.TransformText());
        }
예제 #3
0
 public string Compile(CompilationParams compilationParams)
 {
     var template =
         new SharpTLDefaultTemplate(new TemplateVars
         {
             Schema = this,
             Namespace = compilationParams.Namespace,
             MethodsInterfaceName = compilationParams.MethodsInterfaceName
         });
     return template.TransformText();
 }