同步委托最简单的一个列子

同步委托简单的列子

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