XNodeDocumentOrderComparer 类

定义

包含用于比较节点文档顺序的功能。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)
继承
XNodeDocumentOrderComparer
实现

注解

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

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

构造函数

XNodeDocumentOrderComparer()

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

方法

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.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
ToString()

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

(继承自 Object)

显式接口实现

IComparer.Compare(Object, Object)

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

适用于