XNodeDocumentOrderComparer Class

 

Contains functionality to compare nodes for their document order. This class cannot be inherited.

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

System.Object
  System.Xml.Linq.XNodeDocumentOrderComparer

public sealed class XNodeDocumentOrderComparer : IComparer, IComparer<XNode>

NameDescription
System_CAPS_pubmethodXNodeDocumentOrderComparer()

Initializes a new instance of the XNodeDocumentOrderComparer class.

NameDescription
System_CAPS_pubmethodCompare(XNode, XNode)

Compares two nodes to determine their relative document order.

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_pubmethodGetHashCode()

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

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_privmethodIComparer.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.

Universal Windows Platform
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.

Return to top
Show: