blob: 514065a3e2f02d969d7afac3e691b43dd3688d82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using System;
using System.Reflection;
using System.Runtime.InteropServices;
class Program
{
static int Main ()
{
Type t = typeof (Control);
MethodInfo m = t.GetMethod ("set_Foo");
if (m.GetParameters ()[0].Name != "value")
return 1;
return 0;
}
}
class Control
{
public virtual int Foo
{
[param: MarshalAs (UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof (int))]
set
{
}
}
}
|