Derive a KeyedList<TKey, TValue> generic class from the List<T> base class

This sample shows how to derive a generic class from another generic collection class and add new functionality to the derived class. Sample usage and test driver code is attached. Many nuances with using C# generics are demonstrated in the source.

C# (118.2 KB)
 
 
 
 
 
(1)
788 times
Add to favorites
7/19/2012
E-mail Twitter del.icio.us Digg Facebook