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