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

GenerateTypeConstructor() protected method

protected GenerateTypeConstructor ( CodeTypeConstructor constructor ) : void
constructor CodeTypeConstructor
return void
		protected override void GenerateTypeConstructor (CodeTypeConstructor constructor)
		{
			if (IsCurrentDelegate || IsCurrentEnum || IsCurrentInterface) {
				return;
			}

#if NET_2_0
			OutputAttributes (constructor.CustomAttributes, null, false);
#endif

			Output.Write ("static " + GetSafeName (CurrentTypeName) + "()");
			OutputStartBrace ();
			Indent++;
			GenerateStatements (constructor.Statements);
			Indent--;
			Output.WriteLine ('}');
		}
CSharpCodeGenerator