Example #1
0
        public CandyIterator(CandyBag collection, bool reverse = false)
        {
            this._collection = collection;
            this._reverse    = reverse;

            if (reverse)
            {
                this._position = collection.GetItems().Count;
            }
        }