예제 #1
0
        private IAccommodation CreateAccomodation()
        {
            IAccommodation accomodation = new Accommodation(accomodationDataIterator.Current as ListNode);

            accomodationDataIterator.MoveNext();
            return(accomodation);
        }
예제 #2
0
 public bool MoveNext()
 {
     if (it != null)
     {
         if (!it.MoveNext())
         {
             if (left)
             {
                 it = null;
             }
             else
             {
                 return(false);
             }
         }
         return(true);
     }
     else
     {
         if (node.Right != null)
         {
             it   = node.Right.GetIterator();
             left = false;
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }
예제 #3
0
 public bool MoveNext()
 {
     if (!it.MoveNext())
     {
         it.Reset();
     }
     return(true);
 }