repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git]
/
mcs
/
tests
/
gtest-optional-05.cs
blob
262acaa1ba41a1b771065eb76a3e630348618b47
1
using
System
;
2
3
public class
Blah
4
{
5
public delegate int
MyDelegate
(
int
i
,
int
j
=
7
);
6
7
public int
Foo
(
int
i
,
int
j
)
8
{
9
return
i
+
j
;
10
}
11
12
public static int
Main
()
13
{
14
Blah i
=
new
Blah
();
15
MyDelegate del
=
new
MyDelegate
(
i
.
Foo
);
16
17
int
number
=
del
(
2
);
18
19
Console
.
WriteLine
(
number
);
20
if
(
number
!=
9
)
21
return
1
;
22
23
return
0
;
24
}
25
}