TypeBuilder.IsGenericType 属性

定义

获取一个值,该值指示当前类型是否是泛型类型。Gets a value indicating whether the current type is a generic type.

public:
 virtual property bool IsGenericType { bool get(); };
public override bool IsGenericType { get; }
member this.IsGenericType : bool
Public Overrides ReadOnly Property IsGenericType As Boolean

属性值

如果当前 TypeBuilder 对象表示的类型是泛型,则为 true;否则为 falsetrue if the type represented by the current TypeBuilder object is generic; otherwise, false.

注解

如果 DefineGenericParameters 方法已用于为其提供泛型类型参数,则 @no__t 0 对象表示泛型类型定义。A TypeBuilder object represents a generic type definition if the DefineGenericParameters method has been used to give it generic type parameters. 作为泛型的 @no__t 0 类的实例始终是一个泛型类型定义。An instance of the TypeBuilder class that is generic is always a generic type definition.

若要详细了解反射中的泛型类型和泛型反射中使用的术语的固定条件列表,请参阅 Type.IsGenericType 属性。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.

适用于

另请参阅