{I+=codeWee;} |
public class A { private void Do() { Console.WriteLine("Do"); } } ... A a = new A(); Type thisType = a.GetType(); MethodInfo theMethod = thisType.GetMethod("Do", BindingFlags.NonPublic | BindingFlags.Instance); theMethod.Invoke(a, null);