C# Класс NClass.CodeGenerator.SourceFileGenerator

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

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

Метод Описание
Generate ( string directory ) : string

Защищенные методы

Метод Описание
AddBlankLine ( ) : void
AddBlankLine ( bool indentation ) : void
SourceFileGenerator ( TypeBase type, string rootNamespace ) : System
WriteFileContent ( ) : void
WriteLine ( string text ) : void
WriteLine ( string text, bool indentation ) : void

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

Метод Описание
AddIndent ( ) : void
FinishWork ( ) : void
WriteFileContent ( TextWriter writer ) : void

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

AddBlankLine() защищенный Метод

protected AddBlankLine ( ) : void
Результат void

AddBlankLine() защищенный Метод

protected AddBlankLine ( bool indentation ) : void
indentation bool
Результат void

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

/// An error has occured while generating the source file. ///
public Generate ( string directory ) : string
directory string
Результат string

SourceFileGenerator() защищенный Метод

/// is null. ///
protected SourceFileGenerator ( TypeBase type, string rootNamespace ) : System
type NClass.Core.TypeBase
rootNamespace string
Результат System

WriteFileContent() защищенный абстрактный Метод

protected abstract WriteFileContent ( ) : void
Результат void

WriteLine() защищенный Метод

protected WriteLine ( string text ) : void
text string
Результат void

WriteLine() защищенный Метод

protected WriteLine ( string text, bool indentation ) : void
text string
indentation bool
Результат void