GenericTypeParameterBuilder.HasElementTypeImpl 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在衍生類別中覆寫時,實作 HasElementType 屬性並判斷目前 Type 是否內含或參考其他類型;也就是說,目前 Type 是否為陣列、指標或以傳址方式傳遞。
protected:
override bool HasElementTypeImpl();
C#
protected override bool HasElementTypeImpl();
override this.HasElementTypeImpl : unit -> bool
Protected Overrides Function HasElementTypeImpl () As Boolean
如果 true
是陣列、指標或以傳址方式傳遞,則為 Type,否則為 false
。
產品 | 版本 |
---|---|
.NET | 8, 9, 10 |