XNodeDocumentOrderComparer Class
Contains functionality to compare nodes for their document order. This class cannot be inherited.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
| Name | Description | |
|---|---|---|
![]() | XNodeDocumentOrderComparer() | Initializes a new instance of the XNodeDocumentOrderComparer class. |
| Name | Description | |
|---|---|---|
![]() | Compare(XNode^, XNode^) | Compares two nodes to determine their relative document order. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IComparer::Compare(Object^, Object^) | Compares two nodes to determine their relative document order. |
This class implements IComparer and IComparer<XNode>.
We recommend that instead of using this class directly, you use the InDocumentOrder<T> method. This class is used internally by that method.
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.


