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
[configure] Add new target.
[mono-project.git]
/
mcs
/
tests
/
dtest-021.cs
blob
284c68ddcb87738d59fe1aa9fe2894d5a8821d98
1
public class
T
2
{
3
class
B
4
{
5
public dynamic this
[
int
i
] {
6
set
{
7
int
v
= (
dynamic
)
value
;
8
}
9
get
{
10
return
i
;
11
}
12
}
13
}
14
15
public class
Program
16
{
17
public static int
Main
()
18
{
19
B b
=
new
B
();
20
b
[
4
] =
1
;
21
dynamic
d
=
b
[
9
];
22
return
0
;
23
}
24
}
25
}