/// <summary>
        /// Creates the MrAveragesSequence in the underlying collection. Type 1.
        /// </summary>
        public MrAveragesSequenceItem CreateMrAveragesSequence()
        {
            var dicomAttribute = DicomAttributeProvider[DicomTags.MrAveragesSequence];

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