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