匿名方法的机种书写形式
this.BeginInvoke(new EventHandler(
(sender,e)=>
{
var x = (dynamic)sender;
var y = (dynamic)e;
}
), new object[] { msg, total, curresult, type });
this.BeginInvoke(new Func<string, string, string>(
(x, y) =>
{
return "";
}
), new object[] { msg, total.ToString() });
this.BeginInvoke(new Action<string, string>(
(x, y) =>
{
}
), new object[] { msg, total.ToString() });
this.BeginInvoke(new EventHandler(
delegate
{
}
), new object[] { msg, total, curresult, type });