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
In ilasm/tests:
[mcs.git]
/
errors
/
cs0122-8.cs
blob
b61b31720f4d6f42e255f07fa2c1ba8280e4053e
1
// cs0122-8.cs: `A.member' is inaccessible due to its protection level
2
// Line: 17
3
// NOTE: if `member' were a field or a property, this'd be CS1540
4
5
using
System
;
6
7
class
A
8
{
9
protected event
EventHandler member
;
10
}
11
12
class
B
:
A
13
{
14
static void
Main
()
15
{
16
A a
=
new
A
();
17
a
.
member
+=
Handler
;
18
}
19
20
static void
Handler
(
object
sender
,
EventArgs args
) {}
21
}
22
23