Class ElementEqualityComparer
Namespace: Aspose.Medical.Dicom.Comparators
Assembly: Aspose.Medical.dll (25.11.0)
Represents a Aspose.Medical.Dicom.Elements.IElement comparison operation. Two data elements considered to be equal if:
- they have the same Aspose.Medical.Dicom.Elements.IElement.Tag;
- they have the same Aspose.Medical.Dicom.Elements.IElement.ValueRepresentation;
- element’s data are the same for both elements.
public sealed class ElementEqualityComparer : IEqualityComparer<ielement>Inheritance
object ← ElementEqualityComparer
Implements
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
ElementEqualityComparer()
public ElementEqualityComparer()Properties
Comparer
Gets an object that performs a Aspose.Medical.Dicom.Elements.IElement comparison operation. Read-only Aspose.Medical.Dicom.Comparators.ElementEqualityComparer.
public static ElementEqualityComparer Comparer { get; }Property Value
Methods
Equals(IElement?, IElement?)
public bool Equals(IElement? x, IElement? y)Parameters
x IElement
?
y IElement
?
Returns
Exceptions
Can’t construct Comparer for the given x and y.
GetHashCode(IElement)
public int GetHashCode(IElement obj)Parameters
obj IElement
Returns
Exceptions
Can’t construct Comparer for the given obj or Can’t calculate hash for the given obj using constructed comparer. </ielement>