© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
29 replies
TigerThePleb

Implement string properties

1, public string Prop { get; set} = string.Empty;
2, public string Prop { get; set} = "";
3, public string Prop { get; set} = default!;

Hi, I am a newbie, could some one help me to have better understand use case of those 3 way implement string properties above ? ( especially 3rd way)
Thanks in advanced!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Difference string and string?
C#CC# / help
3y ago
string inside a string
C#CC# / help
4y ago
Extracting string from string?
C#CC# / help
4y ago