SignatureHelper.AddArguments(Type[], Type[][], Type[][]) SignatureHelper.AddArguments(Type[], Type[][], Type[][]) SignatureHelper.AddArguments(Type[], Type[][], Type[][]) SignatureHelper.AddArguments(Type[], Type[][], Type[][]) Method

Definition

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

public:
 void AddArguments(cli::array <Type ^> ^ arguments, cli::array <cli::array <Type ^> ^> ^ requiredCustomModifiers, cli::array <cli::array <Type ^> ^> ^ optionalCustomModifiers);
public void AddArguments (Type[] arguments, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers);
member this.AddArguments : Type[] * Type[][] * Type[][] -> unit
Public Sub AddArguments (arguments As Type(), requiredCustomModifiers As Type()(), optionalCustomModifiers As Type()())

Parameters

arguments
Type[]

The types of the arguments to be added.

requiredCustomModifiers
Type[][]

An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding argument, such as IsConst or 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
Type[][]

An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding argument, such as IsConst or 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.

Exceptions

An element of arguments is null.

-or-

One of the specified custom modifiers is null. (However, null can be specified for the array of custom modifiers for any argument.)

The signature has already been finished.

-or-

One of the specified custom modifiers is an array type.

-or-

One of the specified custom modifiers is an open generic type. That is, the ContainsGenericParameters property is true for the custom modifier.

-or-

The size of requiredCustomModifiers or optionalCustomModifiers does not equal the size of arguments.

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.

Applies to