MethodBase.IsGenericMethodDefinition Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets a value that indicates whether the method is a generic method definition.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Booleantrue if the current MethodBase object represents the definition of a generic method; otherwise, false.
If the current MethodBase represents a generic method definition, then:
The IsGenericMethodDefinition property is true.
For each Type object in the array returned by the GetGenericArguments method:
The Type.IsGenericParameter property is true.
The Type.DeclaringMethod property returns the current instance.
The Type.GenericParameterPosition property is the same as the position of the Type object in the array.
Note: |
|---|
Generic constructors are not supported, so this property returns false if the current instance is of type ConstructorInfo. |
Note: