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