Type.IsConstructedGenericType 属性

定义

获取指示此对象是否表示构造的泛型类型的值。Gets a value that indicates whether this object represents a constructed generic type. 你可以创建构造型泛型类型的实例。You can create instances of a constructed generic type.

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

属性值

如果此对象表示构造泛型类型,则为 true;否则为 falsetrue if this object represents a constructed generic type; otherwise, false.

注解

构造的泛型类型已为其所有泛型类型参数提供显式类型。A constructed generic type has had explicit types supplied for all of its generic type parameters. 它也称为封闭式泛型类型。It is also referred to as a closed generic type.

当此属性为true时,可以创建当前类型的实例; 如果是false,则不能。When this property is true, you can create instances of the current type; when it is false, you can't.

适用于