XNodeEqualityComparer Class

XNodeEqualityComparer Class

 

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

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

System.Object
  System.Xml.Linq.XNodeEqualityComparer

public sealed class XNodeEqualityComparer : IEqualityComparer, 
	IEqualityComparer<XNode>

NameDescription
System_CAPS_pubmethodXNodeEqualityComparer()

Initializes a new instance of the XNodeEqualityComparer class.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodEquals(XNode, XNode)

Compares the values of two nodes.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetHashCode(XNode)

Returns a hash code based on an XNode.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEqualityComparer.Equals(Object, Object)

Compares the values of two nodes.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEqualityComparer.GetHashCode(Object)

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

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1

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

Return to top
Show:
© 2016 Microsoft