Ejemplo n.º 1
0
 public CodeFileWriter(string filePath, CodeFile codeFile, CodeWriterOptions codeWriterOptions) : base(codeWriterOptions)
 {
     this.filePath          = filePath;
     this.codeFile          = codeFile;
     this.codeWriterOptions = codeWriterOptions;
     UsingNamespaces        = codeFile.UsingNamespaces;
     fileContent            = new StringBuilder();
 }
Ejemplo n.º 2
0
        protected CodeWriter(CodeWriterOptions codeWriterOptions)
        {
            DeclarationSection      = new CodeSection();
            ConstructorsSection     = new CodeSection();
            PropertiesSection       = new CodeSection();
            PublicPropertiesSection = new CodeSection();
            MethodsSection          = new CodeSection();
            PublicMethodsSection    = new CodeSection();

            declarationSectionWriter      = new CodeSectionWriter(DeclarationSection, codeWriterOptions, this);
            constructorsSectionWriter     = new CodeSectionWriter(ConstructorsSection, codeWriterOptions, this);
            propertiesSectionWriter       = new CodeSectionWriter(PropertiesSection, codeWriterOptions, this);
            publicPropertiesSectionWriter = new CodeSectionWriter(PublicPropertiesSection, codeWriterOptions, this);
            methodsSectionWriter          = new CodeSectionWriter(MethodsSection, codeWriterOptions, this);
            publicMethodsSectionWriter    = new CodeSectionWriter(PublicMethodsSection, codeWriterOptions, this);
        }
Ejemplo n.º 3
0
 public CodeSectionWriter(CodeSection codeSection, CodeWriterOptions codeWriterOptions, CodeWriter codeWriter)
 {
     this.codeSection       = codeSection;
     this.codeWriterOptions = codeWriterOptions;
     this.codeWriter        = codeWriter;
 }