Type.IsConstructedGenericType Type.IsConstructedGenericType Type.IsConstructedGenericType Type.IsConstructedGenericType Property

定义

获取指示此对象是否表示构造的泛型类型的值。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.

适用于