Summary

Chapter 15 introduced the notion of generics from a language point of view. One of the main motivations for the language and runtime feature’s introduction in the .NET 2.0 was generic collection types. In this chapter we looked at the various collection types available in the BCL.

After starting our exploration in the nongeneric worlds, we aimed our attention at the generic collections, including stacks, queues, lists, dictionaries, and more. A solid knowledge of how any of those types work and when to use them is essential to become a successful .NET and C# developer.

Get C# 4.0 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.