Exemplo n.º 1
0
        public AlphabeticalOrderIterator(WordsCollection collection, bool reverse = false)
        {
            _collection = collection;
            _reverse    = reverse;

            if (reverse)
            {
                _position = collection.GetItems().Count;
            }
        }
Exemplo n.º 2
0
 public override object Current()
 {
     return(_collection.GetItems()[_position]);
 }