views:

150

answers:

2

The only C# generics explanations I can ever seem to locate go into the "List<T>" discussion and end there. I am looking for something a little more in-depth, specifically when dealing with <T> in method signatures -- I see some pretty wild syntax at times and am having trouble understanding why and when to use it. I feel like I could be doing certain things smarter or more efficiently at times if I had a better grasp of generics. Thanks!

+3  A: 

Very thorough coverage in the MDSN section on C# generics

Alex Martelli
+2  A: 

I highly recommend O'Reilly's C# 3.0 in a Nutshell. It provides a very detailed discussion of Generics, typical usage scenarios, and syntactical intricacies.

JoshJordan