3 ms·
If I am understanding the issue here I don't believe C# would suffer from this issue since reflection works not only on public method access where those methods
by SigmundA 3y ago
If I am understanding the issue here I don't believe C# would suffer from this issue since reflection works not only on public method access where those methods use privates internally but in fact could access privates directly.
In C# private is more of suggestion than an enforced concept since you can do anything you want with reflection, which is very useful and necessary sometimes. Keeps normal code clean and encapsulated while allowing one to go under the covers as needed.
Seems very strange that not only can you not get to private members directly in JS but even worse you can't call a public method that use a private though a proxy, bizarre and against what I would think JS to be.