protected override void GenerateCompileUnitStart(CodeCompileUnit e)
{
bool generateComment = true;
base.GenerateCompileUnitStart(e);
if (e.UserData.Contains(XSharpCodeConstants.USERDATA_NOHEADER))
{
generateComment = false;
}
if (generateComment)
{
this.Output.WriteLine("//------------------------------------------------------------------------------");
this.Output.WriteLine("// <auto-generated>");
this.Output.WriteLine("// This code was generated by a tool.");
this.Output.WriteLine("// Runtime version: " + Environment.Version.ToString());
this.Output.WriteLine("// Generator : XSharp.CodeDomProvider " + typeof(XSharpCodeGenerator).Assembly.GetName().Version.ToString());
this.Output.WriteLine("// Timestamp : " + System.DateTime.Now.ToString());
this.Output.WriteLine("// ");
this.Output.WriteLine("// Changes to this file may cause incorrect behavior and may be lost if");
this.Output.WriteLine("// the code is regenerated.");
this.Output.WriteLine("// <auto-generated>");
this.Output.WriteLine("//------------------------------------------------------------------------------");
}
}
protected override void GenerateCompileUnitEnd(CodeCompileUnit e)