© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•8mo ago•
15 replies
jd

Difference between string and string?

From a quick google search, it said that string isn’t nullable but string? Is but when I assign null to string my program still compiles and runs fine, only thing I get is a warning
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 `IEnumerable<string>`
C#CC# / help
16mo ago
Difference between String and string keyword [Answered]
C#CC# / help
4y ago
❔ Difference string and string?
C#CC# / help
3y ago