Class MetaFacade
Denotes a facade for the code generator
public static class MetaFacade
- Inheritance
-
MetaFacade
- Inherited Members
Methods
CreateCode(INamespace, string)
Generates the code for the given namespace
public static CodeCompileUnit CreateCode(INamespace ns, string overAllNamespace)
Parameters
ns
INamespacethe namespace for which code should be generated
overAllNamespace
stringThe namespace that should be prepended to the generated code
Returns
- CodeCompileUnit
A compilation unit with the generated code
GenerateCode(CodeCompileUnit, CodeDomProvider, string, bool)
Generates code for the given unit with the given code provider
public static void GenerateCode(CodeCompileUnit unit, CodeDomProvider generator, string target, bool splitToFolders)
Parameters
unit
CodeCompileUnitThe code compile unit
generator
CodeDomProviderThe code provider
target
stringThe target path
splitToFolders
boolTrue, if the unit should be split up in one class per file, otherwise false
SplitCompileUnit(CodeCompileUnit)
Splits the provided code compile unit into chunks such that it contains one class per file
public static IDictionary<string, CodeCompileUnit> SplitCompileUnit(CodeCompileUnit unit)
Parameters
unit
CodeCompileUnitThe unit containing all the code
Returns
- IDictionary<string, CodeCompileUnit>
A dictionary of paths and code compile units