Generic Collection Types

Now that we’ve looked at nongeneric collection types, it’s time to improve the static typing of collections by using the generic collections in System.Collections.Generic. The advantages of using generic collections were pointed out repeatedly in Chapter 15, including compile-time detection of typing errors at the level of element types as well as improved performance.

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.