Skip to main content

Generics Sample (C#)

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 ty

C# (27.9 KB)
4 Star
3,940 times
Add to favorites
E-mail Twitter Digg Facebook
Click an item in the panel on the left to view the contents here.