示例#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);
     }
 }
示例#2
0
 public void Print()
 {
     Console.WriteLine("InstanceData.SOPInstanceUID: " + SOPInstanceUID.ToStringNull());
     Console.WriteLine("InstanceData.SeriesInstanceUID: " + SeriesInstanceUID.ToStringNull());
     Console.WriteLine("InstanceData.StudyInstanceUID: " + StudyInstanceUID.ToStringNull());
     Console.WriteLine("InstanceData.InstanceNumber: " + InstanceNumber.ToStringNull());
     Console.WriteLine("InstanceData.TransferSyntax: " + TransferSyntax.ToStringNull());
     Console.WriteLine("InstanceData.SOPClassUID: " + SOPClassUID.ToStringNull());
     Console.WriteLine("InstanceData.StationName: " + StationName.ToStringNull());
     Console.WriteLine("InstanceData.PatientID: " + PatientID.ToStringNull());
     Console.WriteLine("InstanceData.NumberOfFrames: " + NumberOfFrames);
 }
示例#3
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);
     }
 }