System.Reflection.Emit.EnumBuilder.GetConstructors Method

Returns an array of System.Reflection.ConstructorInfo objects representing the public and non-public constructors defined for this class, as specified.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public override System.Reflection.ConstructorInfo[] GetConstructors (System.Reflection.BindingFlags bindingAttr)

Parameters

bindingAttr
This must be a bit flag from System.Reflection.BindingFlags : InvokeMethod, NonPublic, and so on.

Returns

Returns an array of System.Reflection.ConstructorInfo objects representing the specified constructors defined for this class. If no constructors are defined, an empty array is returned.

Remarks

As a workaround, to retrieve the constructor of a finished type, you can retrieve the type using Type.GetType or System.Reflection.Assembly.GetType(string) and use reflection on the retrieved type.

Requirements

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