示例#1
0
        public FahrzeugIter(IEnumerator <Fahrzeug> enumerator)
        {
            Fahrzeug = enumerator.Current;

            if (enumerator.MoveNext())
            {
                Next = new FahrzeugIter(enumerator);
            }
        }
示例#2
0
        public bool MoveNext()
        {
            if (iter == null)
            {
                Current = null;
                return(false);
            }

            iter = iter.Next;

            if (iter == null)
            {
                Current = null;
                return(false);
            }

            Current = iter.Fahrzeug;
            return(true);
        }
示例#3
0
 public Fahrzeuge()
 {
     iter = FahrzeugGenerator.GetIter();
 }
示例#4
0
 public void Dispose()
 {
     iter    = null;
     Current = null;
 }
示例#5
0
 public FahrzeugEnumerator(FahrzeugIter iter)
 {
     this.iter = iter;
 }