Esempio n. 1
0
 public AlphabeticalOrderIterator(WordsCollection collection, bool reverse = false)
 {
     this._collection = collection;
     this._reverse    = reverse;
     if (reverse)
     {
         this._position = collection.getItems().Count;
     }
 }
Esempio n. 2
0
 public override object Current()
 {
     return(_collection.getItems()[_position]);
 }