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
[System] Throw PlatformNotSupportedException if NetworkInformation.NetworkChange...
[mono-project.git]
/
mcs
/
tests
/
gtest-124.cs
blob
c8f06ac46dc7c5a415890f68a4debb540de76728
1
using
System
;
2
3
interface
IFoo
<
T
>
4
{
5
T
this
[
int
index
] {
6
get
;
set
;
7
}
8
}
9
10
public class
FooCollection
<
T
> :
IFoo
<
T
>
11
{
12
T IFoo
<
T
>.
this
[
int
index
] {
13
get
{
14
return default
(
T
);
15
}
16
set
{
17
}
18
}
19
}
20
21
class
X
22
{
23
public static void
Main
()
24
{
25
IFoo
<
int
>
foo
=
new
FooCollection
<
int
> ();
26
int
a
=
foo
[
3
];
27
Console
.
WriteLine
(
a
);
28
}
29
}