Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
[mono-project.git] / mcs / errors / cs0070.cs
blob240e35713be6dd0270cfa444b5218df0639b00d5
1 // CS0070: The event `Button.Click' can only appear on the left hand side of += or -= when used outside of the type `Button'
2 // Line: 20
4 using System;
6 public delegate void EventHandler (int i, int j);
8 public class Button {
10 public event EventHandler Click;
14 public class Blah {
16 Button Button1 = new Button ();
18 public void Connect ()
20 Button1.Click = new EventHandler (Button1_Click);
23 public void Button1_Click (int i, int j)
27 public static void Main ()