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,包含節點之以值為基礎的雜湊程式碼。

實作

備註

XNodeGetHashCode 實作是以節點的引用身分識別為基礎。 此方法會根據節點的值、其屬性及其子系來計算深度雜湊程式碼。

適用於