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