Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different Scoped Properties - Public getter and internal setter

I know you can do this

public String<T> Get { get; private set; }

The problem is I want the set method to be accessible from a different class within the same DLL (ie: internal)

Is this possible?

like image 220
Jack Kada Avatar asked Dec 22 '22 14:12

Jack Kada


1 Answers

Yes, you can use any access modifier with either automatic property accessor:

public String<T> Get { get; internal set; }
like image 107
BoltClock Avatar answered Jan 04 '23 23:01

BoltClock