[sdks] Fix README.md
[mono-project.git] / mcs / tests / test-890.cs
bloba27814b9ed8b8ca7289ce9678d82257b63146c0f
1 using System;
3 interface Iface
5 int A { get; }
7 void B ();
9 event Action C;
11 void D (int a, string b);
13 string E { get; }
16 class X
18 public static int Main ()
20 var res = typeof(Iface).GetMembers ();
22 // Ensure metadata order matches source code order
24 if (res [0].Name != "get_A")
25 return 1;
27 if (res [1].Name != "B")
28 return 2;
30 if (res [2].Name != "add_C")
31 return 3;
33 if (res [3].Name != "remove_C")
34 return 4;
36 if (res [4].Name != "D")
37 return 5;
39 if (res [5].Name != "get_E")
40 return 6;
42 return 0;