System.Reflection.ConstructorInfo.ConstructorName Field

Represents the name of the class constructor method as it is stored in metadata. This name is always ".ctor". This field is read-only.

Value: .ctor

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public static readonly string ConstructorName

Remarks

This field is read-only.

This field is a string that contains the value ".ctor". An object constructor will be named with this field if and only if it is not a type initializer.

Note:

For more information on type initializers, see ConstructorInfo.TypeConstructorName.

For more information on object constructors, see Partition II of the CLI Specification.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0