private static void writeSource(string outputFile, CodeCompileUnit cu)
{
Microsoft.CSharp.CSharpCodeProvider csp = new Microsoft.CSharp.CSharpCodeProvider();
CodeGeneratorOptions options = new CodeGeneratorOptions();
options.BracingStyle = "C";
options.BlankLinesBetweenMembers = false;
using (StreamWriter writer = new StreamWriter(outputFile, false))
{
csp.GenerateCodeFromCompileUnit(cu, writer, options);
}
}