MethodBuilder.GetGenericArguments Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Overrides Function GetGenericArguments As Type()
public override Type[] GetGenericArguments()

Return Value

Type: array<System.Type[]
An array of GenericTypeParameterBuilder objects representing the type parameters, if the method is generic, or nulla null reference (Nothing in Visual Basic) if the method is not generic.

Remarks

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

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

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.