summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0065.cs
blob: ef442674949278e6be06a73d72948b478aa701f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0065: `EventClass.handler': event property must have both add and remove accessors
// Line : 9

using System;

public delegate void EventHandler (object sender, EventArgs e);

public class EventClass {
        event EventHandler handler { add; }
}

public class MainClass {
	public static void Main () {}
}