Prev | Current Page 196 | Next

Jon Skeet

"C# in Depth: What you need to master C# 2 and 3"


That??™s all we??™re going to cover in the way of advanced features. Just to reiterate,
this is not meant to have been an absolutely complete guide by any means??”but most
developers are unlikely to need to know the more obscure areas. I hope for your sake
that you fall into this camp, as specifications tend to get harder to read the deeper you
go into them. Remember that unless you??™re working alone and just for yourself,
you??™re unlikely to be the only one to work on your code. If you need features that are
more complex than the ones demonstrated here, you almost certainly shouldn??™t
assume that anyone reading your code will understand it without help. On the other
hand, if you find that your coworkers don??™t know about some of the topics we??™ve covered
so far, please feel free to direct them to the nearest bookshop??¦
Listing 3.12 Retrieving and invoking a generic method with reflection
96 CHAPTER 3 Parameterized typing with generics
The next section is much more down to earth than our investigations into reflection
and the bowels of the JIT. It covers the most common use of generics: the standard
collection classes.
3.5 Generic collection classes in .NET 2.0
Although this book is primarily about C# as a language, it would be foolish to ignore the
fact that C# is almost always used within the .NET Framework, and that in order to use
the language effectively you??™ll need to have a certain amount of knowledge of the
libraries too.


Pages:
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208