同步委托简单的列子
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();
}
}
}
转载于:https://www.cnblogs.com/xiaoyaohan/p/9753727.html