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