Chapter 3. Parameterized typing with generics
This chapter covers
Generic types and methods
Generic collections in .NET 2.0
Limitations of generics
Comparisons with other languages
True[1] story: the other day my wife and I did our weekly grocery shopping. Just before we left, she asked me if I had the list. I confirmed that indeed I did have the list, and off we went. It was only when we got to the grocery store that our mistake made itself obvious. My wife had been asking about the shopping list whereas I’d actually brought the list of neat features in C# 2. When we asked an assistant whether we could buy any anonymous methods, we received a very strange look.
If only we could have expressed ourselves more clearly! If only she’d had some way of saying ...
Get C# in Depth 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.