public void GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o) { if (Language == Language.CSharp) { provider.AddCSharpStaticClassSupport(e, ref w); } else if (Language == Language.VisualBasic) { provider.AddVBModuleSupport(e); } provider.GenerateCodeFromCompileUnit(e, w, o); }