Task.Factory.StartNew的用法

Original 2016-11-10 14:44:17 1693
abstract:private void button5_Click(object sender, EventArgs e) { int val = 5; Task.Factory.StartNew(() =>
private void button5_Click(object sender, EventArgs e) { int val = 5; Task.Factory.StartNew(() => { MessageBox.Show("测试StartNew:无参数"); }); Task.Factory.StartNew(a => { MessageBox.Show("测试StartNew:参数值" + (int)a); }, val); }
Release Notes

Popular Entries