Collections

 

  1. Arrays: Fixed-size collections of elements of the same type.
  2. ArrayList:Any datatype can be inserted
  3. List<T>: Dynamic arrays that automatically resize as needed.
  4. Dictionary<TKey, TValue>: Collection of key-value pairs.
  5. HashSet<T>: Collection of unique elements.
  6. Queue<T>: First-in-first-out (FIFO) collection.
  7. Stack<T>: Last-in-first-out (LIFO) collection.
  8. LinkedList<T>: Doubly linked list.
  9. SortedDictionary<TKey, TValue>: Sorted collection of key-value pairs.
  10. SortedSet<T>: Sorted collection of unique elements.
  11. Hashtable: Non-generic collection of key-value pairs.
  12. SortedDictionary<TKey, TValue>: Sorted collection of key-value pairs.
  13. SortedSet<T>: Sorted collection of unique elements.
  14. BitArray: Collection of bits that can be individually set or cleared.
  15. ConcurrentBag<T>: Thread-safe collection for unordered bags of objects.
  16. ConcurrentDictionary<TKey, TValue>: Thread-safe collection of key-value pairs.
  17. ConcurrentQueue<T>: Thread-safe first-in-first-out (FIFO) collection.
  18. ConcurrentStack<T>: Thread-safe last-in-first-out (LIFO) collection.
  19. Immutable collections: Collections that cannot be modified after creation, such as ImmutableList<T>, ImmutableDictionary<TKey, TValue>, etc.

Comments