示例#1
0
        /// <summary>
        /// Creates the PetReconstructionSequence in the underlying collection. Type 1.
        /// </summary>
        public PetReconstructionSequenceItem CreatePetReconstructionSequence()
        {
            var dicomAttribute = DicomAttributeProvider[DicomTags.PetReconstructionSequence];

            if (dicomAttribute.IsNull || dicomAttribute.IsEmpty)
            {
                var dicomSequenceItem = new DicomSequenceItem();
                dicomAttribute.Values = new[] { dicomSequenceItem };
                var sequenceType = new PetReconstructionSequenceItem(dicomSequenceItem);
                return(sequenceType);
            }
            return(new PetReconstructionSequenceItem(((DicomSequenceItem[])dicomAttribute.Values)[0]));
        }
		/// <summary>
		/// Creates the PetReconstructionSequence in the underlying collection. Type 1.
		/// </summary>
		public PetReconstructionSequenceItem CreatePetReconstructionSequence()
		{
			var dicomAttribute = DicomAttributeProvider[DicomTags.PetReconstructionSequence];
			if (dicomAttribute.IsNull || dicomAttribute.IsEmpty)
			{
				var dicomSequenceItem = new DicomSequenceItem();
				dicomAttribute.Values = new[] {dicomSequenceItem};
				var sequenceType = new PetReconstructionSequenceItem(dicomSequenceItem);
				return sequenceType;
			}
			return new PetReconstructionSequenceItem(((DicomSequenceItem[]) dicomAttribute.Values)[0]);
		}