© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
27 replies
ogie1985

❔ Difference string and string?

string? t = null; // no warning
string t2 = null; // warning

Console.WriteLine(t);
Console.WriteLine(t2); //behaves same
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Difference between string and string?
C#CC# / help
8mo ago
✅ Difference between `string[]` and `IEnumerable<string>`
C#CC# / help
16mo ago
Difference between String and string keyword [Answered]
C#CC# / help
4y ago
❔ What is the difference between string pool and intern pool?
C#CC# / help
4y ago