blob: cf0f6aeb9627b2c4055d2a43acea326a970dc828 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// CS0832: An expression tree cannot contain an assignment operator
// Line: 19
using System;
using System.Linq.Expressions;
public delegate void EventHandler (int i, int j);
public class Button
{
public event EventHandler Click;
}
public class Blah
{
public static void Main ()
{
Button b = new Button ();
Expression<Action> e = () => b.Click += new EventHandler (Button1_Click);
}
public static void Button1_Click (int i, int j)
{
}
}
|