{I+=codeWee;} |
class A { private void MethodA(int n, int m) { } } class B { private void Start() { A a = new A(); System.Reflection.MethodInfo theMethod = a.GetType().GetMethod("MethodA", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); theMethod.Invoke(this, new object[] { 1, 2 }); } }