private IAccommodation CreateAccomodation() { IAccommodation accomodation = new Accommodation(accomodationDataIterator.Current as ListNode); accomodationDataIterator.MoveNext(); return(accomodation); }
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); } } }
public bool MoveNext() { if (!it.MoveNext()) { it.Reset(); } return(true); }