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
[interp] Reduce computation under calc_section mutex
[mono-project.git]
/
mcs
/
tests
/
test-472.cs
blob
1bbdeacd9d34c11f9cfa86fa4e776a4f80047587
1
using
System
;
2
using
System
.
Reflection
;
3
4
class
Test
5
{
6
public int
Prop
{
7
get
{ return prop; }
8
set
{ prop = value; }
9
}
10
11
int
prop
=
0
;
12
13
public static int
Main
()
14
{
15
MethodInfo mi
=
typeof
(
Test
).
GetMethod
(
"set_Prop"
);
16
if
(
mi
.
GetParameters
().
Length
!=
1
)
17
return
1
;
18
if
((
mi
.
GetParameters
()[
0
].
Name
) !=
"value"
)
19
return
2
;
20
21
Console
.
WriteLine
(
"OK"
);
22
return
0
;
23
}
24
}