MethodBuilder.SetSignatureCore Method

Definition

When overridden in a derived class, sets the method signature, including the return type, the parameter types, and the required and optional custom modifiers of the return type and parameter types.

C#
protected abstract void SetSignatureCore(Type? returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers);

Parameters

returnType
Type

The return type of the method.

returnTypeRequiredCustomModifiers
Type[]

An array of types representing the required custom modifiers.

returnTypeOptionalCustomModifiers
Type[]

An array of types representing the optional custom modifiers.

parameterTypes
Type[]

The types of the parameters of the method.

parameterTypeRequiredCustomModifiers
Type[][]

An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding parameter.

parameterTypeOptionalCustomModifiers
Type[][]

An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding parameter.

Applies to

Product Versions
.NET 8, 9