Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

24 lines
500 B
C#

using System;
using System.Runtime.InteropServices;
public class Test
{
public static int Main ()
{
object [] o = typeof (IFoo).GetMethod ("get_Item").GetParameters () [0].GetCustomAttributes (false);
if (o.Length != 1)
return 1;
o = typeof (IFoo).GetMethod ("set_Item").GetParameters () [0].GetCustomAttributes (false);
if (o.Length != 1)
return 2;
return 0;
}
public interface IFoo
{
int this [[MarshalAs (UnmanagedType.Struct)]object vt0BasedIdxOrId] { get; set; }
}
}