SignatureHelper.AddArgument Method (Type, Boolean)

 

Adds an argument of the specified type to the signature, specifying whether the argument is pinned.

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

public void AddArgument(
	Type argument,
	bool pinned
)

Parameters

argument
Type: System.Type

The argument type.

pinned
Type: System.Boolean

true if the argument is pinned; otherwise, false.

Exception Condition
ArgumentNullException

argument is null.

To add an argument with optional or required custom modifiers, use the AddArgument(Type, Type[], Type[]) method overload.

.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 8.0
Return to top
Show: