using System.Collections;
namespace ArrayListGenerics
public static void Main(string[] args)
var books = new ArrayList<Book> {new Book("Moby Dick", 254)};
public string Title { get; set; }
public int NumberOfPages { get; set; }
public Book(string title, int pages)
class ArrayList<T> : IEnumerable
internal void Add(Book book)
throw new NotImplementedException();
public IEnumerator GetEnumerator()
throw new NotImplementedException();