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

屬性值

Boolean

如果由目前的 TypeBuilder 物件所代表的類型為泛型,則為 true;否則為 falsetrue if the type represented by the current TypeBuilder object is generic; otherwise, false.

備註

TypeBuilder如果 DefineGenericParameters 方法已用來提供泛型型別參數,則物件代表泛型型別定義。A TypeBuilder object represents a generic type definition if the DefineGenericParameters method has been used to give it generic type parameters. 泛型類別的實例 TypeBuilder 一律是泛型型別定義。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.

適用於

另請參閱