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)
 
 
 
 
 
(0)
1,485 times
Add to favorites
6/17/2011
E-mail Twitter del.icio.us Digg Facebook