Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MethodBuilder::GetGenericArguments Method ()

 

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)

public:
virtual array<Type^>^ GetGenericArguments() override

Return Value

Type: array<System::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 MethodInfo::IsGenericMethod and MethodInfo::GetGenericArguments. For information on generic types, see Type::IsGenericType.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show:
© 2017 Microsoft