2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0122-7.cs
blob6945e6dd511c40317dab8a125e5072013456abb4
1 // cs0122-7.cs: `BB.AnEvent' is inaccessible due to its protection level
2 // Line: 10
4 using System;
6 class X
8 static void Main ()
10 BB b = new BB ();
11 b.AnEvent += DoIt;
14 public static void DoIt (object sender, EventArgs args) {}
17 public class BB
19 event EventHandler AnEvent;