SoFunction
Updated on 2025-03-06

C# asynchronous task example sharing (asynchronous operation)

namespace ConsoleApplication18
{
    class Program
    {
        static void Main(string[] args)
        {
            Func<string, string> _processTimeFunc = new Func<string, string>((string arg) =>
           {
               return ("{0} {1}", arg, );
           });
            <string, string>(_processTimeFunc.BeginInvoke, _processTimeFunc.EndInvoke, "Zhuzhou", null)
                .ContinueWith((result) =>
                {
                    ();
                });
            ();
        }