In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
[mcs.git] / tests / test-721.cs
blob514065a3e2f02d969d7afac3e691b43dd3688d82
1 using System;
2 using System.Reflection;
3 using System.Runtime.InteropServices;
5 class Program
7 static int Main ()
9 Type t = typeof (Control);
10 MethodInfo m = t.GetMethod ("set_Foo");
12 if (m.GetParameters ()[0].Name != "value")
13 return 1;
15 return 0;
19 class Control
21 public virtual int Foo
23 [param: MarshalAs (UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof (int))]
24 set