What types should I use to pass collections in C#?

added by DotNetKicks
4/18/2019 1:39:23 PM

1 Kicks, 218 Views

In C# we work with collections of data all the time, and .NET provides several types for storing collections, such as Lists, Arrays, Dictionaries, and HashSets. But one question that often comes up during code review, is "what types should we use to pass collections around in code"?