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)
954 times
Add to favorites
E-mail Twitter Digg Facebook