IEqualityComparer.GetHashCode Method
Collapse the table of content
Expand the table of content

XNodeEqualityComparer.IEqualityComparer.GetHashCode Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

'Declaration
Private Function GetHashCode ( _
	obj As Object _
) As Integer Implements 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.

Implements

IEqualityComparer.GetHashCode(Object)

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft