Le collezioni generiche introdotte dal Framework 2.0 sono elencate qui sotto e raggruppate in base al loro utilizzo. Inoltre sono messe in corrispondenza con le collezioni non tipizzate originarie del Framework 1.x.
| System.Collections |
System.Collections.Generic |
| Le principali interfaccie |
| IEnumerator |
IEnumerator<T> |
| IEnumerable |
IEnumerable<T> |
| ICollection |
ICollection<T> |
| IList |
IList<T> |
| IDictionary |
IDictionary<K,T> |
| Le collezioni base ICollection<T> |
| Stack |
Stack<T> |
| Queue |
Queue<T> |
| Le collezioni IList<T> |
| System.Array |
System.Array(1) |
| ArrayList |
List<T> |
| StringCollection |
List<string> |
|
LinkedList<T> |
| CollectionBase |
Collection<T> |
| ReadOnlyCollectionBase |
ReadOnlyCollection<T> |
| Le collezioni IDictionary<T> |
HashTable, DictionaryBase, HybridDictionary, ListDictionary |
Dictionary<K,V> |
| StringDictionary(2) |
Dictionary<string,string> |
| SortedList |
SortedDictionary<K,V> |
| NameObjectCollectionBase |
SortedDictionary<string,object> |
| NameValueCollection |
SortedDictionary<string,string[]> |
| I criteri di ordinamento |
| System.IComparable |
IComparable<T> |
| Comparer |
Comparer<T> |
_________________
(1) In System.Array sono stati aggiunti numerosi metodi generici per elaborare in modo tipizzato i vettori.
(2) System.Collections.Specialized.StringDictionary non implementa IDictionary ma solo IEnumerable mentre Dictionary<K,V> implementa IDictionary<K,V>.