Search
Setup for Free
C
C#
•
3y ago
Decoherence
❔ ✅ why properties instead of public fields
in this case
class Person { public int age; //vs public int Age {get; set;} }
class Person { public int age; //vs public int Age {get; set;} }
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,129
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
class
Person
{
public
int
age
;
//vs
public
int
Age
{
get
;
set
;}
}
class
Person
{
public
int
age
;
//vs
public
int
Age
{
get
;
set
;}
}
Next page
Similar Threads
OOP - Properties and Fields
C
C# / help
12mo ago
Properties vs Fields in C#
C
C# / help
12mo ago
Why use `await AbcAsync()` instead of `Abc()`
C
C# / help
8mo ago
✅ why is it '1' instead of '0'??
C
C# / help
3y ago