System.Reflection.Emit.MethodBuilder.GetGenericArguments Method

Returns an array of System.Reflection.Emit.GenericTypeParameterBuilder objects that represent the type parameters of the method, if it is generic.

Syntax

public override Type[] GetGenericArguments ()

Returns

An array of System.Reflection.Emit.GenericTypeParameterBuilder objects representing the type parameters, if the method is generic, or null if the method is not generic.

Remarks

The type parameters of a generic method also are returned by the MethodBuilder.DefineGenericParameters(String[]) method that is used to define them.

For more information, see System.Reflection.MethodInfo.IsGenericMethod and System.Reflection.MethodInfo.GetGenericArguments. For information on generic types, see Type.IsGenericType.

Requirements

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