Export (0) Print
Expand All

XNodeEqualityComparer Class

Compares nodes to determine whether they are equal. This class cannot be inherited.

System.Object
  System.Xml.Linq.XNodeEqualityComparer

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

public sealed class XNodeEqualityComparer : IEqualityComparer<XNode>, 
	IEqualityComparer

The XNodeEqualityComparer type exposes the following members.

  NameDescription
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryXNodeEqualityComparerInitializes a new instance of the XNodeEqualityComparer class.
Top

  NameDescription
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryEquals(XNode, XNode)Compares the values of two nodes.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetHashCode()Serves as the default hash function. (Inherited from Object.)
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetHashCode(XNode)Returns a hash code based on an XNode.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkIEqualityComparer.EqualsCompares the values of two nodes.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkIEqualityComparer.GetHashCodeReturns a hash code based on the value of a node.
Top

The purpose of this class is to implement System.Collections.IEqualityComparer and System.Collections.Generic.IEqualityComparer<T>. Classes that require identity (such as Dictionary<TKey, TValue> ) require an instance of a class that implements one of these interfaces.

.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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft