Example #1
0
            public static void SeeBooks(IBookNumerable library)
            {
                var iterator = library.CreateNumerator();

                while (iterator.HasNext())
                {
                    var book = iterator.Next();
                    Console.WriteLine(book.Name);
                }
            }
Example #2
0
 public LibraryNumerator(IBookNumerable a)
 {
     aggregate = a;
 }
Example #3
0
 public LibraryNumerator(IBookNumerable bookNumerable)
 {
     _bookNumerable = bookNumerable;
     _index         = 0;
 }
 public LibraryNumerator(IBookNumerable a)
 {
     aggregate = a;
 }
Example #5
0
 public LibraryNumerator(IBookNumerable aggregate)
 {
     _aggregate = aggregate;
 }
 public LibraryNumerator(IBookNumerable bookNumerable)
 {
     _aggregate = bookNumerable;
 }
Example #7
0
 public LibraryNumerator(IBookNumerable e) => aggregate = e;