* Form.cs: Make the fix for #80775 windows-only (fixes #81957).
[mono.git] / mcs / errors / cs0079-2.cs
1 // CS0079: The event `Foo.Event2' can only appear on the left hand side of += or -=\r
2 // Line: 11\r
3 \r
4 using System;\r
5 \r
6 public class Foo {\r
7         EventHandler event2;\r
8 \r
9         public Foo ()\r
10         {\r
11                 Event2 = null;\r
12         }\r
13 \r
14         public event EventHandler Event2 {\r
15                 add { event2 += value; }\r
16                 remove {event2 -= value; }\r
17         }\r
18 }\r