AddArgument Method (Type, Boolean)
Collapse the table of content
Expand the table of content

SignatureHelper.AddArgument Method (Type, Boolean)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

ExceptionCondition
ArgumentNullException

argument is null.

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

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft