2 using System.Reflection;
3 using System.Runtime.InteropServices;
7 public static int Main ()
9 Type t = typeof (Control);
10 MethodInfo m = t.GetMethod ("set_Foo");
12 if (m.GetParameters ()[0].Name != "value")
21 public virtual int Foo
23 [param: MarshalAs (UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof (int))]