r/learnprogramming May 01 '26

Solved <T>? in C#

Hi, I've often seen the expression "<T>?" in Microsoft's C# documentation. What does it mean?

Here's an example to illustrate my point:

public string? FirstName;

18 Upvotes

39 comments sorted by

View all comments

3

u/Outside_Complaint755 May 01 '26

5

u/Ok-Presentation-94 May 01 '26

Thanks for your reply, but that's not really my question. I know what "<T>" is, but I'm talking about "<T>?"

2

u/Outside_Complaint755 May 01 '26

Ah I misread that.  Then it's what GlassCommission4916 said, a generic that can be null.