Search
Get Started
C
C#
•
4y ago
damia
Object Initializers - To Parenthesize or Not To Parenthesize (that is the question)
What is the difference between the object initializers on lines 1 and 2
? In what situations should one be preferred over the other
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,119
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
How to prevent nulls using this approach for Object Initializers?
C
C# / help
15mo ago
Paradoxical initializers [Answered]
C
C# / help
4y ago
blazor maui hybrid js initializers not working
C
C# / help
17mo ago