MethodBase.IsGenericMethod Property

July 28, 2014

Gets a value that indicates whether the method is generic.

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

public virtual bool IsGenericMethod { get; }

Property Value

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

Use the IsGenericMethod property to determine whether the current MethodBase object represents a generic method. Use the ContainsGenericParameters property to determine whether the current MethodBase object represents an open constructed method or a closed constructed method.

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