[2019-12] [threads] Add back mono_threads_attach_tools_thread as a public API (#18074)
[mono-project.git] / mono / tests / delegate13.cs
blob3a4cfd02a0175530f0e4091433c8b96753937a60
1 using System;
3 public static class Program
5 public static int Main ()
7 Action d1 = new Action (Method1);
8 Action d2 = new Action (Method2);
9 Action d12 = d1 + d2;
10 Action d21 = d2 + d1;
12 if (d1.Method.Name != "Method1")
13 return 1;
14 if (d2.Method.Name != "Method2")
15 return 2;
16 if (d12.Method.Name != "Method2")
17 return 3;
18 if (d21.Method.Name != "Method1")
19 return 4;
21 return 0;
24 public static void Method1 ()
28 public static void Method2 ()