MethodBase.IsGenericMethod Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets a value that indicates whether the method is generic.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
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. |
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Xbox 360, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.