Метод | Описание | |
---|---|---|
Write ( |
Generates the code using the appropriate code provider and writes it to the desired location.
|
Метод | Описание | |
---|---|---|
CodeWriter ( |
Private constructor.
|
|
CreateCodeGeneratorOptions ( ) : |
This is a helper method to create an instance of CodeGeneratorOptions class with desired code generation options.
|
|
EnsureDirectoryExists ( string directory ) : void |
This is a helper method to ensure that a given directory exists in the file system. If the specified directory does not exist in the file system this method creates it before returning. |
|
GetExtension ( CodeLanguage language ) : string |
Helper method to get the code file extension for a given programming language.
|
|
GetUniqueFileName ( string directory, string fileName, CodeLanguage language, bool overwrite ) : string |
This is a helper method for acquiring a unique file name.
|
|
WriteCodeFiles ( ) : void |
Writes the code to the disk according to the given options.
|
|
WriteConfigurationFile ( ) : void | ||
WriteSeparateCodeFiles ( ) : void |
This method writes each type generated into a separate file. The type name is used as the file name.
|
|
WriteSingleCodeFile ( ) : void |
This method writes the generated code into a single file.
|
|
WriteTextFiles ( ) : void |
public static Write ( |
||
codeNamespace | ||
configuration | ||
options | ||
textFiles | List |
|
provider | ||
Результат |