C Sharp Collection Classes


How to choose a Collection type in .NET

.NET contains many different collection types and they all have slightly different behaviour and limitations.

Extracted from MSDN http://msdn.microsoft.com/en-us/library/ms132438(v=VS.80).aspx


Be sure to choose your collection class carefully. Using the wrong type can restrict your use of the collection. In general, avoid using the types in the System.Collections namespace unless you are specifically targeting .NET Framework version 1.1. The generic and concurrent versions of the collections are to be preferred because of their greater type safety and other improvements.

Consider the following questions:


Leave a Comment