// get the current element of the iteration
 public T Current()
 {
     if (collection.Get(i, j) == null)
     {
         Next();
     }
     return(collection.Get(i, j));
 }
 // get the current element of the iteration
 public T Current()
 {
     if (collection.Get(i, j) == null)
     {
         switch (IsDone())
         {
         case false:
             Next();
             break;
         }
         return(Current());
     }
     else
     {
         return(collection.Get(i, j));
     }
 }
Пример #3
0
 // get the current element of the iteration
 public T Current()
 {
     return(collection.Get(i, j));
 }