Feed on
Posts
Comments

Tag Archive 'C#'

A KeyedCollection for int keys

I’m using this class so much that I thought I’d share it with you. This generic class is an implementation of the KeyedCollection<TKey, TItem> class for items that have a numeric key:
public abstract class NumericallyKeyedCollection<T> : KeyedCollection<int, T>{ }
Using int-Keys takes a bit more work than other types, because KeyedCollection provides indexers for both key […]

Read Full Post »