XNodeEqualityComparer.IEqualityComparer.GetHashCode(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳基於節點值的雜湊碼。
virtual int System.Collections.IEqualityComparer.GetHashCode(System::Object ^ obj) = System::Collections::IEqualityComparer::GetHashCode;
int IEqualityComparer.GetHashCode(object obj);
abstract member System.Collections.IEqualityComparer.GetHashCode : obj -> int
override this.System.Collections.IEqualityComparer.GetHashCode : obj -> int
Function GetHashCode (obj As Object) As Integer Implements IEqualityComparer.GetHashCode
參數
- obj
- Object
節點要做雜湊。
傳回
Int32 A 包含節點的基於值的雜湊碼。
實作
備註
XNode的GetHashCode實作基於節點的參照身份。 此方法根據節點的值、屬性及其後代計算出深度雜湊碼。