Mono.CSharp.CSharpCodeGenerator.GenerateEntryPointMethod C# (CSharp) Method

GenerateEntryPointMethod() protected method

protected GenerateEntryPointMethod ( CodeEntryPointMethod method, CodeTypeDeclaration declaration ) : void
method CodeEntryPointMethod
declaration CodeTypeDeclaration
return void
		protected override void GenerateEntryPointMethod (CodeEntryPointMethod method, 
								  CodeTypeDeclaration declaration)
		{
#if NET_2_0
			OutputAttributes (method.CustomAttributes, null, false);
#endif

			Output.Write ("public static ");
#if NET_2_0
			OutputType (method.ReturnType);
#else
			Output.Write ("void");
#endif
			Output.Write (" Main()");
			OutputStartBrace ();
			Indent++;
			GenerateStatements (method.Statements);
			Indent--;
			Output.WriteLine ("}");
		}
		
CSharpCodeGenerator