Creating and Iterating a Simple Generic Class

This sample shows how to create a custom generic list class with a single type parameter, and how to implement IEnumerable<T> to enable foreach iteration over the contents of the list. The sample also shows how client code creates an instance of the class by specifying a type...

C# (64.3 KB)
1,489 times
Add to favorites
E-mail Twitter Digg Facebook