blob: ae574bb0a0405cab748b8fa8c3c4e0730d7425d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// CS0122: `BB.AnEvent' is inaccessible due to its protection level
// Line: 10
using System;
class X
{
static void Main ()
{
BB b = new BB ();
b.AnEvent += DoIt;
}
public static void DoIt (object sender, EventArgs args) {}
}
public class BB
{
event EventHandler AnEvent;
}
|