Beispiel #1
0
            public void Publish(IVirusDatabaseIterator it)
            {
                var virus = it.Next();

                while (virus != null)
                {
                    Console.WriteLine(virus.ToString());
                    virus = it.Next();
                }
                Console.WriteLine();
            }
Beispiel #2
0
        public override VirusData?Next()
        {
            var virus = base.Next();

            if (virus == null)
            {
                isFirstIteratorEmpty = true;
                virus = it2.Next();
            }
            return(virus);
        }
Beispiel #3
0
 public virtual VirusData?Next() => inner.Next();