}
~Test () {
- Console.WriteLine ("in test desctructor");
+ Console.WriteLine ("in test destructor");
GetIntDelegate del = new GetIntDelegate (getInt);
AsyncCallback ac = new AsyncCallback (async_callback);
- del.BeginInvoke (ac, "bla");
+ if (del.BeginInvoke (ac, "bla") == null) {
+ Console.WriteLine ("async result is null");
+ Environment.Exit (1);
+ }
}
public int getInt () {