© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
57 replies
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# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Next page

Similar Threads

OOP - Properties and Fields
C#CC# / help
13mo ago
Properties vs Fields in C#
C#CC# / help
13mo ago
Why use `await AbcAsync()` instead of `Abc()`
C#CC# / help
9mo ago
✅ why is it '1' instead of '0'??
C#CC# / help
3y ago