Jeremy Boyd
Jeremy Boyd

Reputation: 5403

What is the <T> in Cast<T>() or List<T> in C#

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

Why do C# and VB have Generics? What benefit do they provide? Generics, FTW

Upvotes: 2

Views: 266

Answers (2)

Steven Dorfmeister
Steven Dorfmeister

Reputation: 200

I always thought it was "T" for Template.

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

Upvotes: 0

Greg
Greg

Reputation: 16680

Generic Type Parameter, I think.

Upvotes: 11

Related Questions