Search code examples
c#access-modifiers

How can one type access a private setter of another type's property?


All I need is a way to make a property of one class only 'settable' from one other class (a sort of manager class).

Is this even possible in c#?

My colleague 'reliably' informs me that I have a design flaw, but I feel I should at least ask the community before I concede defeat!


Solution

  • No, it's not really possible to do this in any clean way in C#. You probably have a design flaw ;-)