예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RecordGroup"/> class.
        /// </summary>
        /// <param name="elements">The elements to include in the group.</param>
        public RecordGroup(params IRecordItem[] elements) {

            elementTracker = new ElementTracker();

            if ((elements == null) || (elements.Length == 0)) {
                throw new ArgumentException("At least one record element must be provided.");
            }

            this.elements.AddRange(elements);
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RecordGroup"/> class.
 /// </summary>
 /// <param name="elementTracker">The element tracker.</param>
 public RecordGroup(IElementTracker elementTracker)
 {
     this.elementTracker = elementTracker;
 }