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
Bump external/ikdasm to master.
[mono-project.git]
/
mono
/
tests
/
lock.cs
blob
c639983b3781528260f9b49f0a3884166cade5bd
1
using
System
;
2
3
public class
LockTest
4
{
5
public class
Test
6
{
7
public int
val
{
8
get
{
9
return
(
v
);
10
}
11
set
{
12
v
=
value
;
13
}
14
}
15
16
int
v
;
17
}
18
19
public static void
Main
() {
20
Test a
=
new
Test
();
21
22
lock
(
a
) {
23
a
.
val
=
2
;
24
}
25
Console
.
WriteLine
(
"a is "
+
a
.
val
);
26
}
27
}