repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git]
/
errors
/
cs0122-30.cs
blob
aa461653646b325289f7531cd881f5d8e6e88c34
1
// CS0122: `MainClass.Nested.Delegate()' is inaccessible due to its protection level
2
// Line: 18
3
4
delegate int
TestDelegate
();
5
6
public class
MainClass
7
{
8
class
Nested
9
{
10
static int
Delegate
()
11
{
12
return
0
;
13
}
14
}
15
16
public static void
Main
()
17
{
18
TestDelegate delegateInstance
=
new
TestDelegate
(
Nested
.
Delegate
);
19
}
20
}
21