Redigeeri

Jagamisviis:


XNodeEqualityComparer Class

Definition

Compares nodes to determine whether they are equal. This class cannot be inherited.

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

Remarks

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.

Constructors

XNodeEqualityComparer()

Initializes a new instance of the XNodeEqualityComparer class.

Methods

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 the default hash function.

(Inherited from Object)
GetHashCode(XNode)

Returns a hash code based on an XNode.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

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

IEqualityComparer.Equals(Object, Object)

Compares the values of two nodes.

IEqualityComparer.GetHashCode(Object)

Returns a hash code based on the value of a node.

Applies to

See also