When to Use Generic Collections

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Using generic collections is generally recommended, because you gain the immediate benefit of type safety without having to derive from a base collection type and implement type-specific members. Generic collection types also generally perform better than the corresponding nongeneric collection types (and better than types that are derived from nongeneric base collection types) when the collection elements are value types, because with generics there is no need to box the elements.

The following list is a summary of key generic types to use:

See Also

Concepts

Other Resources