Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (StudyInstanceUID != null ? StudyInstanceUID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SeriesInstanceUID != null ? SeriesInstanceUID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SOPInstanceUID != null ? SOPInstanceUID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PromotedTags != null ? PromotedTags.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (NationalPACSAccessionNumber != null ? NationalPACSAccessionNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DirectoryPath != null ? DirectoryPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StudyInstanceUID != null ? StudyInstanceUID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SeriesInstanceUID != null ? SeriesInstanceUID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ImagesInSeries;
         hashCode = (hashCode * 397) ^ (DicomDataset != null ? DicomDataset.GetHashCode() : 0);
         return(hashCode);
     }
 }