2 using System.Reflection;
6 public override string ToString ()
24 Assembly ass = Assembly.GetCallingAssembly ();
25 Type a_type = ass.GetType ("A");
26 MethodInfo a_method = a_type.GetMethod ("ToString");
28 Type d_type = ass.GetType ("D");
29 MethodInfo d_method = d_type.GetMethod ("Test");
31 Console.WriteLine ("TEST: {0} {1}", a_method, d_method);
36 object a_ret = a_method.Invoke (a, null);
37 Console.WriteLine (a_ret);
39 object d_ret = d_method.Invoke (d, null);
40 Console.WriteLine (d_ret);