Solely for the sake of example I've written this:
public class MyClass
{
private int MyMethod()
{
return 1;
}
}
Is there any way to change access modifier of MyClass::MyMethod()
in runtime to public using Reflection or something else and then invoke it?