Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / delegate5.cs
1 using System;
2 using System.Threading;
3 using System.Runtime.Remoting;
4 using System.Runtime.Remoting.Messaging;
5
6 public class T21
7 {
8         public delegate void TestCallback (int i);
9         
10         public static void Test (int i)
11         {
12                 Console.WriteLine (i);
13         }
14         
15         public static void Main ()
16         {
17                 TestCallback cb = new TestCallback (Test);
18                 IAsyncResult ar = cb.BeginInvoke (100, null, null);
19                 ar.AsyncWaitHandle.WaitOne ();
20                 cb.EndInvoke (ar);
21         }
22 }
23
24