© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
15 replies
cheeze2000

✅ Don't quite understand the `required` keyword

although i marked the member as required, i defined a default value in case if it's not in the object initializer. does the keyword not work this way?
image.png
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

❔ `required` keyword
C#CC# / help
3y ago
✅ I don't understand GC
C#CC# / help
4y ago
I don't understand the content of the image
C#CC# / help
5w ago
Don’t understand nullable reference types
C#CC# / help
4y ago