XNodeEqualityComparer.IEqualityComparer.GetHashCode(Object) Methode
Definition
Gibt einen Hashcode auf der Grundlage des Werts eines Knotens zurück.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
Parameter
- obj
- Object
Der zu hashende Knoten.The node to hash.
Gibt zurück
Ein Int32, das einen wertbasierten Hashcode für den Knoten enthält.A Int32 that contains a value-based hash code for the node.
Implementiert
Hinweise
Die XNode Implementierung von GetHashCode basiert auf der referenziellen Identität des-Knotens.The XNode implementation of GetHashCode is based on the referential identity of the node. Diese Methode berechnet einen Deep-Hashcode basierend auf dem Wert des Knotens, seinen Attributen und seinen nachfolgenden Werten.This method computes a deep hash code based on the value of the node, its attributes, and its descendants.