projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow passing null to JsonArray.Add()
[mono.git]
/
mcs
/
tests
/
test-725.cs
1
using System;
2
using System.Reflection;
3
using System.Runtime.InteropServices;
4
5
public delegate int D ([In] ref int arg);
6
7
class B
8
{
9
public static int Main ()
10
{
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;
26
27
break;
28
}
29
}
30
31
return 0;
32
}
33
}