2 using System.Runtime.InteropServices;
5 delegate void SimpleDelegate ();
7 public static int v = 0;
11 Console.WriteLine ("Test.F1");
15 Console.WriteLine ("Test.F2");
19 Console.WriteLine ("Test.F3");
24 SimpleDelegate d1 = new SimpleDelegate (F1);
25 SimpleDelegate d2 = new SimpleDelegate (F2);
26 SimpleDelegate d3 = new SimpleDelegate (F3);
28 SimpleDelegate d12 = d1 + d2;
29 SimpleDelegate d13 = d1 + d3;
30 SimpleDelegate d23 = d2 + d3;
31 SimpleDelegate d123 = d1 + d2 + d3;