ImmutableObjectAttribute.Equals(Object) 方法

定義

傳回值,這個值指出此執行個體是否與指定的物件相等。Returns a value that indicates whether this instance is equal to a specified object.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

參數

obj
Object

要與這個執行個體進行比較的 Object,或 Null 參考 (在 Visual Basic 中為 Nothing)。An Object to compare with this instance or a null reference (Nothing in Visual Basic).

傳回

Boolean

如果 true 和這個執行個體具有相同的類型和值,則為 obj否則為 falsetrue if obj equals the type and value of this instance; otherwise, false.

適用於

另請參閱