Editar

Partilhar via


XNodeEqualityComparer.IEqualityComparer.GetHashCode(Object) Method

Definition

Returns a hash code based on the value of a node.

 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

Parameters

obj
Object

The node to hash.

Returns

A Int32 that contains a value-based hash code for the node.

Implements

Remarks

The XNode implementation of GetHashCode is based on the referential identity of the node. This method computes a deep hash code based on the value of the node, its attributes, and its descendants.

Applies to