XNodeEqualityComparer Class
Compares nodes to determine whether they are equal. This class cannot be inherited.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
| Name | Description | |
|---|---|---|
![]() | XNodeEqualityComparer() | Initializes a new instance of the XNodeEqualityComparer class. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Equals(XNode^, XNode^) | Compares the values of two nodes. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetHashCode(XNode^) | Returns a hash code based on an XNode. |
![]() | GetType() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEqualityComparer::Equals(Object^, Object^) | Compares the values of two nodes. |
![]() ![]() | IEqualityComparer::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.
Available since 8
.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.


