paperlined.org
dev > programming_languages > csharp > collections
document updated 15 years ago, on May 13, 2009
datastru genre generic? count automatically
sorted?
notes
  
[ ] IList "yes" fixed no base class: Array
ArrayList IList no dynamic no
List(T) IList yes dynamic no
SortedList IList no dynamic yes
SortedList(Tkey,Tval) IList yes dynamic yes
  
Hashtable IDictionary no dynamic no
Dictionary(Tkey,Tval) IDictionary yes dynamic no
SortedDictionary(Tkey,Tval) IDictionary yes dynamic yes
HashSet(T) yes dynamic values only, not key+val; no duplicates allowed
  
LinkedList(T) IEnumerable yes dynamic no
  
Stack(T) both available dynamic no LIFO
Queue(T) both available dynamic no FIFO

General documentation

Third party references

Specific notes