ModuleBuilder.GetConstructorToken Method (ConstructorInfo, IEnumerable<Type>)

.NET Framework (current version)
 

Returns the token used to identify the constructor that has the specified attributes and parameter types within this module.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public MethodToken GetConstructorToken(
	ConstructorInfo constructor,
	IEnumerable<Type> optionalParameterTypes
)

Parameters

constructor
Type: System.Reflection.ConstructorInfo

The constructor to get a token for.

optionalParameterTypes
Type: System.Collections.Generic.IEnumerable<Type>

A collection of the types of the optional parameters to the constructor.

Return Value

Type: System.Reflection.Emit.MethodToken

The token used to identify the specified constructor within this module.

Exception Condition
ArgumentNullException

constructor is null.

.NET Framework
Available since 4.5
Return to top
Show: