1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
class C { public static int Main () { var d = new C (); if (d.Foo (x: 1, y : 2) != 3) return 1; return 0; } public int Foo (int x, long y, string a = "a") { return 1; } public int Foo (int x, long y, params string[] args) { return 2; } public int Foo (long y, int x) { return 3; } }