MethodBuilder.DefineGenericParametersCore(String[]) Method

Definition

When overridden in a derived class, sets the number of generic type parameters for the current method, specifies their names, and returns an array of GenericTypeParameterBuilder objects that can be used to define their constraints.

C#
protected abstract System.Reflection.Emit.GenericTypeParameterBuilder[] DefineGenericParametersCore(params string[] names);

Parameters

names
String[]

An array of strings that represent the names of the generic type parameters.

Returns

An array of GenericTypeParameterBuilder objects representing the type parameters of the generic method.

Applies to

Product Versions
.NET 8, 9