예제 #1
0
        public AlphabeticalOrderIterator(WordsCollection collection, bool reverse = false)
        {
            this._collection = collection;
            this._reverse    = reverse;

            if (reverse)
            {
                _position = collection.getItems().Count;
            }
        }
예제 #2
0
 public override object Current()
 {
     return(_collection.getItems()[_position]);
 }