예제 #1
0
파일: Frame.cs 프로젝트: top501/WSILIB
        public override int GetHashCode()
        {
            int FrameIndex_hashcode     = FrameIndex.GetHashCode();
            int SOPInstanceUID_hashcode = SOPInstanceUID.GetHashCode();

            return(FrameIndex_hashcode + SOPInstanceUID_hashcode);
        }
예제 #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);
        }
예제 #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);
     }
 }
예제 #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);
     }
 }