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)
5 Star
1,057 times
Add to favorites
E-mail Twitter Digg Facebook
Click an item in the panel on the left to view the contents here.