摘要: private void button7_Click(object sender, EventArgs e) { Actionint, int action = (x, y) = { MessageBox.Show((x+y).ToString()); }; action(1, 2); } private void button11_Click(object sender, EventArgs e) { Actionint, int action = delegate(int x, int y) { MessageBox.Show((x + y).ToString()); }; 阅读全文
posted @ 2010-12-13 16:14 RobotTech 阅读(382) 评论(0) 推荐(1) 编辑