MethodBase.IsGenericMethod 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 generic.

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

Syntax

Public Overridable ReadOnly Property IsGenericMethod As Boolean
public virtual bool IsGenericMethod { get; }

Property Value

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

Remarks

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.

Note

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

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

MethodBase Class

System.Reflection Namespace

ContainsGenericParameters

IsGenericMethodDefinition

Type..::.IsGenericType