MethodBase.IsGenericMethodDefinition Property

July 28, 2014

Gets a value that indicates whether the method is a generic method definition.

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

public virtual bool IsGenericMethodDefinition { get; }

Property Value

Type: System.Boolean
true if the current MethodBase object represents the definition of a generic method; otherwise, false.

If the current MethodBase represents a generic method definition, then:

NoteNote:

Generic constructors are not supported, so this property returns false if the current instance is of type ConstructorInfo.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft