Exemplo n.º 1
0
        static void BoilingFinishedCallback(IAsyncResult result)
        {
            AsyncResult     asyncResult = (AsyncResult)result;
            BoilingDelegate del         = (BoilingDelegate)asyncResult.AsyncDelegate;

            del.EndInvoke(result);
            Console.WriteLine("小文:将热水灌到热水瓶");
            Console.WriteLine("小文:继续整理家务");
        }