如何:在 LINQ 外部使用 Lambda 表达式
示例
public partial class Form1 : Form { public Form1() { InitializeComponent(); // Use a lambda expression to define an event handler. this.Click += (s, e) => { MessageBox.Show(((MouseEventArgs)e).Location.ToString());}; } }