/// <summary> /// Initializes a new instance of the <see cref="PromotionItemCollection"/> class. /// </summary> /// <param name="source">The source.</param> /// <param name="validRowIndexes">The valid row indexes.</param> internal PromotionItemCollection(PromotionItemCollection source, int[] validRowIndexes) { this._Helper = source._Helper; this._ValidRowIndexes = validRowIndexes; this._ValidPromotionItems = new PromotionItem[this._ValidRowIndexes.Length]; }
// Methods /// <summary> /// Initializes a new instance of the <see cref="PromotionItemCollectionEnumerator"/> class. /// </summary> /// <param name="collection">The collection.</param> internal PromotionItemCollectionEnumerator(PromotionItemCollection collection) { this.index = -1; this.collection = collection; ((IEnumerator)this).Reset(); }