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
[loader] LoadFrom of problematic images should reprobe
[mono-project.git]
/
mcs
/
errors
/
cs0122-24.cs
blob
fb641992977f98c1b21dd23de5cf76f18b0992b0
1
// CS0122: `Foo.this[int]' is inaccessible due to its protection level
2
// Line: 14
3
4
using
System
;
5
6
public class
Foo
{
7
private int this
[
int
index
]
{ get { return index; }
}
8
}
9
10
public class
Bar
{
11
public static void
Main
()
12
{
13
Foo foo
=
new
Foo
();
14
Console
.
WriteLine
(
foo
[
5
]);
15
}
16
}