Take stars out of types where they make more sense.
[mono-project.git] / mcs / tests / test-725.cs
blobf139e095caa6eb6c98902e0f47f9115c2f4cb9d3
1 using System;
2 using System.Reflection;
3 using System.Runtime.InteropServices;
5 public delegate int D ([In] ref int arg);
7 class B
9 public static int Main ()
11 var methods = typeof (D).GetMethods ();
12 foreach (var m in methods) {
13 var pi = m.GetParameters ();
14 switch (m.Name) {
15 case "Invoke":
16 if (!pi[0].IsIn)
17 return 1;
18 break;
19 case "BeginInvoke":
20 if (!pi[0].IsIn)
21 return 2;
22 break;
23 case "EndInvoke":
24 if (!pi[0].IsIn)
25 return 3;
27 break;
31 return 0;