Export (0) Print
Expand All

TypeBuilder.IsGenericType Property

Note: This property is new in the .NET Framework version 2.0.

Gets a value indicating whether the current type is a generic type.

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

public override bool IsGenericType { get; }
/** @property */
public boolean get_IsGenericType ()

public override function get IsGenericType () : boolean

Property Value

true if the type represented by the current TypeBuilder object is generic; otherwise, false.

A TypeBuilder object represents a generic type definition if the DefineGenericParameters method has been used to give it generic type parameters. An instance of the TypeBuilder class that is generic is always a generic type definition.

For more information on generic types in reflection and a list of the invariant conditions for terms used in generic reflection, see the Type.IsGenericType property.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft