10 C# Generic Collection Types You Should Know

It is every programmer dilemma to choose which collection type to use for a particular scenario. Even worse, some people use List<T> all the time whenever they encounter a collection of objects. You might have heard some other collection types such as the primitive Array (T[]), Dictionary<TKey, TValue>, Stack<T>, Queue<T>, etc. We will look at 10 of the most used generic collection types, its advantages, and disadvantages as well as the best type to choose for different scenarios. When processing a large amount of data, it is critical to choose the right type, as it will significantly affect the performance of your code. [Read more]