同步委托最简单的一个列子
同步委托简单的列子
namespace AsynDel { class Program { static void Main(string[] args) { //同步委托,主线程来实现的 Func<int, int, string> delFunc = (a, b) => (a + b).ToString(); string str = delFunc(3, 4); Console.WriteLine(str); Console.ReadKey(); } } }
同步委托简单的列子
namespace AsynDel { class Program { static void Main(string[] args) { //同步委托,主线程来实现的 Func<int, int, string> delFunc = (a, b) => (a + b).ToString(); string str = delFunc(3, 4); Console.WriteLine(str); Console.ReadKey(); } } }