public override bool Equals(object obj) { if (obj is InstanceIdentifier identifier) { return(StudyInstanceUid.Equals(identifier.StudyInstanceUid, EqualsStringComparison) && SeriesInstanceUid.Equals(identifier.SeriesInstanceUid, EqualsStringComparison) && SopInstanceUid.Equals(identifier.SopInstanceUid, EqualsStringComparison)); } return(false); }
public override bool Equals(object obj) { if (obj is DicomInstanceId instanceId) { return(StudyInstanceUid.Equals(instanceId.StudyInstanceUid, EqualsStringComparison) && SeriesInstanceUid.Equals(instanceId.SeriesInstanceUid, EqualsStringComparison) && SopInstanceUid.Equals(instanceId.SopInstanceUid, EqualsStringComparison) && PartitionName.Equals(instanceId.PartitionName, EqualsStringComparison)); } return(false); }