* TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
[mono-project.git] / mcs / errors / cs0079-2.cs
blob50c30845c8e319f51dbeec586366a297a73e5223
1 // CS0079: The event `Foo.Event2' can only appear on the left hand side of += or -=
2 // Line: 11
4 using System;
6 public class Foo {
7 EventHandler event2;
9 public Foo ()
11 Event2 = null;
14 public event EventHandler Event2 {
15 add { event2 += value; }
16 remove {event2 -= value; }