XNodeEqualityComparer.IEqualityComparer.GetHashCode Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Returns a hash code based on the value of a node.
Namespace: System.Xml.Linq
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
Syntax
'Declaration
Private Function GetHashCode ( _
obj As Object _
) As Integer Implements IEqualityComparer.GetHashCode
int IEqualityComparer.GetHashCode(
Object obj
)
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
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.
Version Information
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Xbox 360, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also