XNodeEqualityComparer::IEqualityComparer::GetHashCode Method (Object^)

 

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

Namespace:   System.Xml.Linq
Assembly:  System.Xml.Linq (in System.Xml.Linq.dll)

private:
virtual int GetHashCode(
	Object^ obj
) sealed = IEqualityComparer::GetHashCode

Parameters

obj
Type: System::Object^

The node to hash.

Return Value

Type: System::Int32

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

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: