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

33 lines
517 B
C#

using System;
using System.Reflection;
using System.Runtime.InteropServices;
public delegate int D ([In] ref int arg);
class B
{
public static int Main ()
{
var methods = typeof (D).GetMethods ();
foreach (var m in methods) {
var pi = m.GetParameters ();
switch (m.Name) {
case "Invoke":
if (!pi[0].IsIn)
return 1;
break;
case "BeginInvoke":
if (!pi[0].IsIn)
return 2;
break;
case "EndInvoke":
if (!pi[0].IsIn)
return 3;
break;
}
}
return 0;
}
}