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 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.