コード例 #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
ファイル: ImageRecord.cs プロジェクト: derek-cap/FodicomTest
        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);
     }
 }