© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
2 replies
Dante

❔ Encapsulation with Extension Method

Question:
I have some extension methods for a class, those extension methods set the properties of that class with some validation logic inside
the problem is that when i wanna use the extension method it also shows the property as an option, i was wondering if there is a way to only show the extension methods as a valid option to set those properties up.
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

✅ Extension Methods
C#CC# / help
2y ago
Extension Methods
C#CC# / help
2y ago
interface vs extension method vs method in class
C#CC# / help
3y ago
trying to learn encapsulation
C#CC# / help
2y ago