Type.IsConstructedGenericType 属性

定义

获取一个值,该值指示此对象是否表示构造的泛型类型。 可以创建构造泛型类型的实例。

public:
 abstract property bool IsConstructedGenericType { bool get(); };
public:
 virtual property bool IsConstructedGenericType { bool get(); };
public abstract bool IsConstructedGenericType { get; }
public virtual bool IsConstructedGenericType { get; }
member this.IsConstructedGenericType : bool
Public MustOverride ReadOnly Property IsConstructedGenericType As Boolean
Public Overridable ReadOnly Property IsConstructedGenericType As Boolean

属性值

true 如果此对象表示构造的泛型类型,则为 ;否则,为 false.

注解

构造泛型类型已为其所有泛型类型参数提供显式类型。 它也称为封闭泛型类型。

当此属性为 true时,可以创建当前类型的实例;如果是 false,则不能。

适用于