2 using System.Reflection;
3 using System.Runtime.InteropServices;
8 ParameterInfo [] pi = typeof (X).GetMethod ("TakesInt").GetParameters ();
10 Console.WriteLine ("{0} and {1}", pi [0].DefaultValue.GetType (), pi [1].DefaultValue.GetType ());
11 if (pi [0].DefaultValue.GetType () != typeof (DBNull))
13 if (pi [1].DefaultValue.GetType () != typeof (Missing))
18 public static void TakesInt (int b, [Optional] int a)