static void BeginCountFactorial() { handler = new MyHandler(CountFactorial); IAsyncResult resultObj = handler.BeginInvoke(10, new AsyncCallback(EndCountFactorial), "object for locking"); }
static void BeginCountFactorial() { handler = new MyHandler(CountFactorial); IAsyncResult resultObj = handler.BeginInvoke(10, new AsyncCallback(EndCountFactorial), "object for locking"); }