共用方式為


IClrPropertyGetter.HasSentinel(Object) 方法

定義

檢查屬性是否設定為其類型的 CLR 預設值。

public bool HasSentinel (object structuralObject);
abstract member HasSentinel : obj -> bool
Public Function HasSentinel (structuralObject As Object) As Boolean

參數

structuralObject
Object

實體或複雜類型實例。

傳回

true 如果屬性值為 CLR 預設值,則為 ; false 它是任何其他值。

適用於