2 using System.Collections.Generic;
8 static int Main(string[] args)
10 List<string> str = null;
12 object[] methodArgs = new object[] { str };
14 Program p = new Program();
15 p.GetType().GetMethod("TestMethod").Invoke(p, methodArgs);
17 /* Byref nullable tests */
18 object[] a = new object [1];
22 typeof (Program).GetMethod ("TestMethodNullable").Invoke (p, a);
29 typeof (Program).GetMethod ("TestMethodNullable").Invoke (p, a);
40 public void TestMethod(ref List<string> strArg)
42 strArg = new List<string>();
45 public void TestMethodNullable (ref int? x) {