C# Collections
Arrays. These are not technically a collection, because arrays have a fixed number of strongly-typed objects.
Simple Collections (System.Collections
)
- ArrayList
- BitArray
- HashTable
- Queue
- SortedList
- Stack
Generic Collections (System.Collection.Generic
)
- Dictionary<TKey, TValue>
- HashSet<T>
- SortedDictionary<TKey, TValue>
- KeyedByTypeCollection<TItem>
- LinkedList<T>
- List<T>
- Queue<T>
- SortedList<T>
- SortedSet<T>
- Stack<T>
- SynchronizedCollection<T>
- SynchronizedKeyedCollection<K,T>
- SynchronizedReadOnlyCollection<T>
Concurrent Collections (System.Collection.Concurrent
)
- BlockingCollection<T>
- ConcurrentBag<T>
- ConcurrentDictionary<TKey,TValue>
- ConcurrentQueue<T>
- ConcurrentStack<T>
Read Only Collections (System.Collections.ObjectModel
)
- ReadOnlyDictionary<TKey, TValue>
- ReadOnlyCollection<T>
- ReadOnlyObservableCollection<T>
References
- Collections https://msdn.microsoft.com/en-us/library/ybcx56wz.aspx
- Arrays https://msdn.microsoft.com/en-us/library/9b9dty7d.aspx
- System.Collections https://msdn.microsoft.com/en-us/library/system.collections.aspx
- System.Collections. Generic https://msdn.microsoft.com/en-us/library/system.collections.generic%28v=vs.110%29.aspx
- System.Collections.Concurrent https://msdn.microsoft.com/en-us/library/system.collections.concurrent.aspx
- System.Collections.ObjectModel https://msdn.microsoft.com/en-us/library/system.collections.objectmodel(v=vs.110).aspx
- Collections & Data Structures https://msdn.microsoft.com/en-us/library/7y3x785f.aspx
- Guidelines for Collections https://msdn.microsoft.com/en-CA/library/dn169389(v=vs.110).aspx
- The New Read Only Collections in .NET 4.5 https://visualstudiomagazine.com/articles/2012/08/07/new-read-only-collection-interfaces-for-net.aspx
- Stack Overflow Questions of Interest