System.Reflection.Emit.SignatureHelper.AddArguments Method

Adds a set of arguments to the signature, with the specified custom modifiers.

Syntax

public void AddArguments (Type[] arguments, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers)

Parameters

arguments
The types of the arguments to be added.
requiredCustomModifiers
An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding argument, such as System.Runtime.CompilerServices.IsConst or System.Runtime.CompilerServices.IsBoxed. If a particular argument has no required custom modifiers, specify null instead of an array of types. If none of the arguments have required custom modifiers, specify null instead of an array of arrays.
optionalCustomModifiers
An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding argument, such as System.Runtime.CompilerServices.IsConst or System.Runtime.CompilerServices.IsBoxed. If a particular argument has no optional custom modifiers, specify null instead of an array of types. If none of the arguments have optional custom modifiers, specify null instead of an array of arrays.

Remarks

The arguments are added to the end of the signature, in order of the elements of arguments.

See the System.Runtime.CompilerServices namespace for classes that represent custom modifiers.

Requirements

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