12. Collections
Part 1: Collection Types Overview
What are Collections?
Part 2: Arrays & Lists
1. Array
Creation
Access
Add/Remove
Key Properties & Methods
2. List<T>
Creation
Access
Add/Remove
Key Properties & Methods
Performance Notes
3. ArrayList (Legacy)
Creation
Access
Add/Remove
Key Properties & Methods
Migration Example
Part 3: Dictionaries (Key-Value Collections)
4. Dictionary<TKey, TValue>
Creation
Access
Add/Remove
Key Properties & Methods
Performance
5. SortedDictionary<TKey, TValue>
Creation
Access
Add/Remove
Key Properties & Methods
Performance
Dictionary vs SortedDictionary
Feature
Dictionary
SortedDictionary
6. SortedList<TKey, TValue>
Creation
Access
Add/Remove
Key Properties & Methods
SortedList vs SortedDictionary
Feature
SortedList
SortedDictionary
7. Hashtable (Legacy)
Creation
Access
Add/Remove
Key Properties & Methods
Part 4: Sets (Unique Elements)
8. HashSet<T>
Creation
Access
Add/Remove
Set Operations
Key Properties & Methods
9. SortedSet<T>
Creation
Access
Add/Remove
Set Operations
Unique Features
HashSet vs SortedSet
Feature
HashSet
SortedSet
Part 5: Queues & Stacks
10. Stack<T>
Creation
Operations
Key Properties & Methods
Safe Access
11. Queue<T>
Creation
Operations
Key Properties & Methods
Safe Access
Part 6: Specialized Collections
12. LinkedList<T>
Creation
Node-Based Operations
Navigation
Key Properties & Methods
Performance
13. BitArray
Creation
Access
Modify
Bitwise Operations
Key Properties & Methods
Part 7: Concurrent Collections (Thread-Safe)
Thread-Safe Collections
Part 8: Collection Comparison Tables
Quick Comparison Table
Collection
Ordered
Unique
Indexed
Add/Remove
Time Complexity
Use Case
Performance Comparison
Operation
Array
List<T>
Dictionary
HashSet
LinkedList
Part 9: Special Properties Explained
Which Collections Have Special Properties?
Why the Difference?
Property Meanings
Quick Rule
Part 10: Best Practices & Guidelines
Choosing the Right Collection
General Guidelines
Performance Tips
Quick Reference Summary
Most Common Collections
Key Terminology
Last updated