MethodBuilder.ContainsGenericParameters Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Not supported for this type.

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

public override bool ContainsGenericParameters { get; }

Property Value

Type: System.Boolean

Not supported.

Exception Condition
NotSupportedException

The invoked method is not supported in the base class.

A MethodBuilder always represents a generic method definition, and thus cannot be invoked.

For more information, see MethodInfo.IsGenericMethod and MethodInfo.ContainsGenericParameters. For information on generic types, see Type.IsGenericType.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show: