XNodeEqualityComparer XNodeEqualityComparer XNodeEqualityComparer XNodeEqualityComparer Class

Definición

Compara los nodos para determinar si son iguales.Compares nodes to determine whether they are equal. Esta clase no puede heredarse.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
    interface IEqualityComparer<XNode>
Public NotInheritable Class XNodeEqualityComparer
Implements IEqualityComparer, IEqualityComparer(Of XNode)
Herencia
XNodeEqualityComparerXNodeEqualityComparerXNodeEqualityComparerXNodeEqualityComparer
Implementaciones

Comentarios

El propósito de esta clase es implementar System.Collections.IEqualityComparer y System.Collections.Generic.IEqualityComparer<T>.The purpose of this class is to implement System.Collections.IEqualityComparer and System.Collections.Generic.IEqualityComparer<T>. Las clases que requieren una identidad (como Dictionary<TKey,TValue> ) requiere una instancia de una clase que implementa una de estas interfaces.Classes that require identity (such as Dictionary<TKey,TValue> ) require an instance of a class that implements one of these interfaces.

Constructores

XNodeEqualityComparer() XNodeEqualityComparer() XNodeEqualityComparer() XNodeEqualityComparer()

Inicializa una nueva instancia de la clase XNodeEqualityComparer.Initializes a new instance of the XNodeEqualityComparer class.

Métodos

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
Equals(XNode, XNode) Equals(XNode, XNode) Equals(XNode, XNode) Equals(XNode, XNode)

Compara los valores de dos nodos.Compares the values of two nodes.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetHashCode(XNode) GetHashCode(XNode) GetHashCode(XNode) GetHashCode(XNode)

Devuelve un código hash basado en un XNode.Returns a hash code based on an XNode.

GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Implementaciones de interfaz explícitas

IEqualityComparer.Equals(Object, Object) IEqualityComparer.Equals(Object, Object) IEqualityComparer.Equals(Object, Object) IEqualityComparer.Equals(Object, Object)

Compara los valores de dos nodos.Compares the values of two nodes.

IEqualityComparer.GetHashCode(Object) IEqualityComparer.GetHashCode(Object) IEqualityComparer.GetHashCode(Object) IEqualityComparer.GetHashCode(Object)

Devuelve un código hash basado en el valor de un nodo.Returns a hash code based on the value of a node.

Se aplica a

Consulte también: