tags:

views:

146

answers:

2

I know this is probably a dupe, but I can't for the life of me remember what the name is or even how to look it up.

I know T would the the Type you are casting to, but what is the technical name of it.

Edit Here is a link for more information on Generics

http://stackoverflow.com/questions/99686/why-do-c-and-vb-have-generics-what-benefit-do-they-provide-generics-ftw

+11  A: 

Generic Type Parameter, I think.

Greg
Come on Greg, say it with confidence!
BlueRaja - Danny Pflughoeft
Thank you! Didn't think to add generics in with my Google search.
Jeremy
@BlueRaja: lol, thanks!
Greg
A: 

I always thought it was "T" for Template.

Generics, I believe is the C# implementation of C++ templates.

Steven Dorfmeister
Actually, no. Generics is the C# implementation of parameterized types. Templates is the C++ implementation of parameterized types. FYI, Managed C++ implements both.
John Saunders
`T` is generally 'type' or 'typename' (from C++ parlance), not 'template'. `U` and `V` are commonly used has +1's like `h` and `j` are used as +1's for `i` as 'increment'. As @John briefly mentions, generics (.Net) and templates (C++) are similar, but not the same. Generics must be verifiable at compile time, whilst templates are not verifiable until instantiation. This is an important distinction because .Net does not have headers, a generic defined in a base assembly must be compilable into IL code to be stored into the assembly for later use by dependent assemblies.
Nathan Ernst
For the record: templates and generics are aesthetically similar, but in practice very different.
BlueRaja - Danny Pflughoeft