2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-408.cs
blob53fac0e78603dc288cf891f5f79a97c6b0598a5f
1 using System;
2 using System.Runtime.InteropServices;
4 public class Test
6 static public int Main ()
8 object [] o = typeof (IFoo).GetMethod ("get_Item").GetParameters () [0].GetCustomAttributes (false);
9 if (o.Length != 1)
10 return 1;
12 o = typeof (IFoo).GetMethod ("set_Item").GetParameters () [0].GetCustomAttributes (false);
13 if (o.Length != 1)
14 return 2;
16 return 0;
19 public interface IFoo
21 int this [[MarshalAs (UnmanagedType.Struct)]object vt0BasedIdxOrId] { get; set; }