Basically I am using a library and I don't want to redefine its classes so I can't change the member I am interested in to Public. Can you force the compiler ?
Asked
Active
Viewed 357 times
1
-
I believe that defeats the intent of that member being private. What is the context in which you are trying to do this? – Mike Pierce Nov 09 '14 at 17:13
-
You could. But that's not what member access control was invented for. Instead you will learn how to do it with your libraries public methods. – Columbo Nov 09 '14 at 17:14
-
Just don't, that's a horrible idea. – Baum mit Augen Nov 09 '14 at 17:14
-
If that member was meant to be changed manually, I'm sure there is an interface in that library that allows you to change it. Otherwise, you're just asking for troubles. – SlySherZ Nov 09 '14 at 17:15