Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int FrameIndex_hashcode     = FrameIndex.GetHashCode();
            int SOPInstanceUID_hashcode = SOPInstanceUID.GetHashCode();

            return(FrameIndex_hashcode + SOPInstanceUID_hashcode);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            const int hashIndex = 307;
            var       result    = SOPInstanceUID != null?SOPInstanceUID.GetHashCode() : 0;

            result = (result * hashIndex) ^ (ImageNumber != null ? ImageNumber.GetHashCode() : 0);
            result = (result * hashIndex) ^ (ReferencedFileID != null ? ReferencedFileID.GetHashCode() : 0);
            return(result);
        }
Exemplo n.º 3
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);
     }
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (NationalPACSAccessionNumber != null ? NationalPACSAccessionNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DicomFilePath != null ? DicomFilePath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StudyInstanceUID != null ? StudyInstanceUID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SeriesInstanceUID != null ? SeriesInstanceUID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SOPInstanceUID != null ? SOPInstanceUID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DicomDataset != null ? DicomDataset.GetHashCode() : 0);
         return(hashCode);
     }
 }