Mono.CSharp.CSharpCodeGenerator.GenerateTypeConstructor C# (CSharp) Méthode

GenerateTypeConstructor() protected méthode

protected GenerateTypeConstructor ( CodeTypeConstructor constructor ) : void
constructor CodeTypeConstructor
Résultat 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