Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }