Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0122-7.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6945e6dd511c40317dab8a125e5072013456abb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// cs0122-7.cs: `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;
}