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
[tests] Test loading references from LoadFrom and LoadFile contexts
[mono-project.git]
/
mono
/
tests
/
generic-synchronized.2.cs
blob
195a803d948b0e0954e79bf43c4b73d31d2a147e
1
using
System
;
2
using
System
.
Threading
;
3
using
System
.
Runtime
.
CompilerServices
;
4
5
public class
Gen
<
T
> {
6
[
MethodImplAttribute
(
MethodImplOptions
.
Synchronized
)]
7
public int
synch
() {
8
return
123
;
9
}
10
11
public int
callSynch
() {
12
return
synch
();
13
}
14
}
15
16
public class
main
{
17
public static int
Main
() {
18
Gen
<
string
>
gs
=
new
Gen
<
string
> ();
19
20
gs
.
synch
();
21
gs
.
callSynch
();
22
23
return
0
;
24
}
25
}