Steven Jeuris | ec0e307 | 2024-04-03 21:42:44 +0000 | [diff] [blame] | 1 | class Example |
2 | { | ||||
3 | string Method(int RIGHT) | ||||
4 | { | ||||
5 | if (false) | ||||
6 | { | ||||
7 | return "out"; | ||||
8 | } | ||||
9 | else { } | ||||
10 | if (true) MethodCall( | ||||
11 | ); | ||||
12 | else MethodCall( | ||||
13 | ); | ||||
14 | switch ("test") | ||||
15 | { | ||||
16 | case "one": | ||||
17 | return MethodCall( | ||||
18 | ); | ||||
19 | case "two": | ||||
20 | break; | ||||
21 | } | ||||
22 | (int, int) tuple = (1, 4); | ||||
23 | switch (tuple) | ||||
24 | { | ||||
25 | case (1, 4): | ||||
26 | MethodCall(); | ||||
27 | break; | ||||
28 | } | ||||
29 | |||||
30 | return "ChangeMe"; | ||||
31 | } | ||||
32 | |||||
33 | string MethodCall(int a = 0, int b = 0) => "test"; | ||||
34 | } |