Gets a value that indicates whether the current stem.Reflection.MethodBase represents a definition of a generic method.
true if the current System.Reflection.MethodBase object represents the definition of a generic method; otherwise false.
The default behavior, when not overridden in a derived class, is to return false. In other words, by default, derived classes do not support generics.
If the current System.Reflection.MethodBase represents a generic method definition, then:
- MethodBase.IsGenericMethodDefinition returns true.
- For each Type object in the array returned by the stem.Reflection.MethodBase.GetGenericArguments method: The Type.IsGenericParameter property returns true; the Type.DeclaringMethod returns the current instance; and the Type.GenericParameterPosition property is the same as the position of the Type object in the array.
For a list of the invariant conditions for terms specific to generic methods, see the MethodInfo.IsGenericMethod property. For a list of the invariant conditions for other terms used in generic reflection, see the Type.IsGenericType property.
Operation
This property is read-only.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0