Search
Setup for Free
C
C#
•
2y ago
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
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,138
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Similar Threads
❔ `required` keyword
C
C# / help
3y ago
✅ I don't understand GC
C
C# / help
4y ago
Don’t understand nullable reference types
C
C# / help
4y ago
Field required but I don't mention "required" above
C
C# / help
3y ago