© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•5mo ago•
11 replies
Rev E. Lations

✅ Am i misremembering how Getters work?

I have a private list in one class and I need to be able to get a copy of it in another class. I have an auto implemented getter for the private list, but I still can’t get anything

I thought the getter on a private property was supposed to let you get the item while it was private
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Importance of getters and setters
C#CC# / help
5mo ago
❔ ✅ How am I making errors?
C#CC# / help
3y ago
are my getters and setters correct?
C#CC# / help
3y ago
❔ Setting work area does not work on windows 10, workarounds?
C#CC# / help
3y ago