Пример #1
0
 // Dispose method
 public virtual void Dispose()
 {
     _collection = null;
     _current    = default(T);
     index       = -1;
 }
Пример #2
0
 // Paramaterized constructor which takes
 // the collection which this enumerator will enumerate
 public CandyEnumerator(CandyCollection <T> collection)
 {
     _collection = collection;
     index       = -1;
     _current    = default(T);
 }