an interesting point
lets say I am adding a click event handler to a menu item
this is legal
ti2.Click += delegate { this.textBox1.Text = nav.Value; };
even though there are no arguments
this is not:
ti2.Click += () => { this.textBox1.Text = nav.Value; };you need the input parameters
ti2.Click += (o,a )=>{ this.textBox1.Text = nav.Value; };
No comments:
Post a Comment