Tuesday, June 26, 2007

Non-Generic to Generic types conversion table

Inbar Gazit published a post on "Converting the Non-Generic Collections" in the BCL Team blog.
He had this handy little table:

Non-genericGeneric replacement
ArrayListList<T>
BitArrayList<Boolean> [note that this isn’t stored as compactly as BitArray but represents the same information]
CaseInsensitiveComparerComparer<T>
CaseInsensitiveHashCodeProviderComparer<T>
CollectionBaseCollection<T>
ComparerComparer<T>
CompatibleComparerComparer<T>
DictionaryBaseKeyedCollection<K,V>
DictionaryEntryKeyValuePair<K,V>
HashtableDictionary<K,V>
KeyValuePairsKeyValuePair<K,V>
QueueQueue<T>
ReadOnlyCollectionBaseReadOnlyCollection<T>
SortedListList<T>
StackStack<T>

No comments: