I have a VB background and I’m converting to C# for my new job. I’m also trying to get better at .NET in general. I’ve seen the keyword ‘T’ used a lot in samples people post. What does the ‘T’ mean in C#? For example:
public class SomeBase<T> where T : SomeBase<T>, new()
What does T do? Why would I want to use it?
It’s a symbol for a generic type parameter. It could just as well be something else, for example:
Only T is the default one used and encouraged by Microsoft.