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)
The XNodeEqualityComparer type exposes the following members.
| 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 a hash function for a particular type. (Inherited from Object.) |
![]() ![]() ![]() ![]() | GetHashCode(XNode) | Returns a hash code based on an XNode. |
![]() ![]() ![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() ![]() ![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() ![]() | IEqualityComparer.Equals | Compares the values of two nodes. |
![]() ![]() ![]() ![]() | IEqualityComparer.GetHashCode | 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.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.


