© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
11mo ago
•
24 replies
Faker
✅ What is a primary constructor in C#
Hello guys
, was just reading a bit about primary constructors
. My question is
, primary constructors is just a
"fancy
" way to write less code instead of declaring a whole constructor
? Or are there any reasons why we would use primary constructors
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
✅ what is a primary constructor? is it any similar to parameterless constructor?
C
C# / help
16mo ago
Primary Constructor
C
C# / help
5mo ago
class constructor in c#
C
C# / help
12mo ago
Default parameter values in primary constructor
C
C# / help
3y ago