Пример #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 void Print()
        {
            Console.WriteLine("SeriesData.Modality: " + Modality.ToStringNull());
            Console.WriteLine("SeriesData.Number: " + Number.ToStringNull());
            Console.WriteLine("SeriesData.InstanceUID: " + InstanceUID.ToStringNull());
            Console.WriteLine("SeriesData.NumberOfRelatedInstances: " + NumberOfRelatedInstances.ToStringNull());
            Console.WriteLine("SeriesData.Description: " + Description.ToStringNull());
            Console.WriteLine("SeriesData.Date: " + Date.ToStringNull());
            Console.WriteLine("SeriesData.StudyInstanceUID: " + StudyInstanceUID.ToStringNull());

            Console.WriteLine();
            Patient.Print();
        }
Пример #4
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);
     }
 }