XNodeDocumentOrderComparer Class

Definition

包含用于比较节点文档顺序的功能。Contains functionality to compare nodes for their document order. 无法继承此类。This class cannot be inherited.

public ref class XNodeDocumentOrderComparer sealed : System::Collections::Generic::IComparer<System::Xml::Linq::XNode ^>, System::Collections::IComparer
public sealed class XNodeDocumentOrderComparer : System.Collections.Generic.IComparer<System.Xml.Linq.XNode>, System.Collections.IComparer
type XNodeDocumentOrderComparer = class
    interface IComparer<XNode>
    interface IComparer
type XNodeDocumentOrderComparer = class
    interface IComparer
    interface IComparer<XNode>
Public NotInheritable Class XNodeDocumentOrderComparer
Implements IComparer, IComparer(Of XNode)
Inheritance
XNodeDocumentOrderComparer
Implements

Remarks

此类实现 IComparerIComparer<XNode>This class implements IComparer and IComparer<XNode>.

建议你使用 InDocumentOrder 方法,而不是直接使用此类。We recommend that instead of using this class directly, you use the InDocumentOrder method. 此类由该方法在内部使用。This class is used internally by that method.

Constructors

XNodeDocumentOrderComparer()

初始化 XNodeDocumentOrderComparer 类的新实例。Initializes a new instance of the XNodeDocumentOrderComparer class.

Methods

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()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IComparer.Compare(Object, Object)

比较两个节点以确定其相对的文档顺序。Compares two nodes to determine their relative document order.

Applies to

See also