Class ElementEqualityComparer

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:

  1. they have the same Aspose.Medical.Dicom.Elements.IElement.Tag;
  2. they have the same Aspose.Medical.Dicom.Elements.IElement.ValueRepresentation;
  3. element’s data are the same for both elements.
public sealed class ElementEqualityComparer : IEqualityComparer<ielement>

Inheritance

object ElementEqualityComparer

Implements

IEqualityComparer<ielement>

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

ElementEqualityComparer

Methods

Equals(IElement?, IElement?)

public bool Equals(IElement? x, IElement? y)

Parameters

x IElement ?

y IElement ?

Returns

bool

Exceptions

MedicalApiException

Can’t construct Comparer for the given x and y.

GetHashCode(IElement)

public int GetHashCode(IElement obj)

Parameters

obj IElement

Returns

int

Exceptions

MedicalApiException

Can’t construct Comparer for the given obj or Can’t calculate hash for the given obj using constructed comparer. </ielement>