MakeGenericInstance(IReadOnlyList<IType>)
Creates a constructed generic method from the current generic method definition by substituting type arguments.
Declaration
IMethod MakeGenericInstance(IReadOnlyList<IType> typeArguments)Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<IType> | typeArguments | The type arguments to substitute for the generic method's type parameters. |
Returns
| Type | Description |
|---|---|
| IMethod | A constructed generic method with the specified type arguments. |
Remarks
This method is analogous to MakeGenericMethod(params Type[]). The current method must be a generic method definition.