Export (0) Print
Expand All

XName.GetHashCode Method

Gets a hash code for this XName.

Namespace:  System.Xml.Linq
Assemblies:   System.Xml.XDocument (in System.Xml.XDocument.dll)
  System.Xml.Linq (in System.Xml.Linq.dll)

public override int GetHashCode()

Return Value

Type: System.Int32
An Int32 that contains the hash code for the XName.

This method serves as a hash function for XName. You can use GetHashCode in hashing algorithms, or in data structures such as a hash table.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft