public ExecuteGenerator ( |
||
generator | The generator to use for outputting the text of the cs file | |
fileName | string | The name of the cs file |
subNamespace | string | Adds an additional directory for the namespace |
return | void |
void ExecuteGenerator(BaseGenerator generator, string fileName, string subNamespace = null)
{
generator.Config = this.Configuration;
var text = generator.TransformText();
string outputFile;
WriteFile(GeneratedFilesRoot, subNamespace, fileName, text, true, true, out outputFile);
FilesWrittenToGeneratorFolder.Add(outputFile);
}