Summary

In this chapter, we looked at the various collection types available in the BCL. A solid knowledge of how any of those collection types work and when to use them is essential to become a successful .NET and C# developer.

After starting our exploration in the nongeneric world of collections, we applied our knowledge of generics from Chapter 15 to generic collections, including stacks, queues, lists, dictionaries, and more.

Next, we discussed thread-safety aspects of working with collections, making the case for the new .NET 4.0 concurrent collections that should be the preferred collection types when multiple threads are involved.

The next chapter covers delegates as a way to delegate responsibilities by passing around references to methods. ...

Get C# 5.0 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.