語言

XNodeEqualityComparer.IEqualityComparer.GetHashCode(Object) 方法

定義

回傳基於節點值的雜湊碼。

 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實作基於節點的參照身份。 此方法根據節點的值、屬性及其後代計算出深度雜湊碼。

適用於