MethodBuilder.GetGenericArguments Method


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

 override cli::array <Type ^> ^ GetGenericArguments();
public override Type[] GetGenericArguments ();
override this.GetGenericArguments : unit -> Type[]
Public Overrides Function GetGenericArguments () As Type()



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


The type parameters of a generic method also are returned by the DefineGenericParameters method that is used to define them.

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

Applies to

See also