static void InheritanceTest08_Sub(AABase obj) { var k = obj.R; var l = obj.R2; Console.WriteLine(string.Format("{0},{1}", k, l)); }
public static void InheritanceTest08() { AABase obj = new AABase(); obj.R = 1; obj.R2 = 2; //var m = typeof(InheritanceTest).GetMethod("InheritanceTest08_Sub"); //m.Invoke(null, new object[] { obj }); }