2 // This test tests both how arguments are selected in the presence
3 // of ref/out modifiers and the params arguments.
10 public static void Foo (ref int i, ref int j)
15 public static int Bar (int j, params int [] args)
20 foreach (int i in args){
21 Console.WriteLine ("My argument: " + i);
28 public static void Foo (int i, int j)
33 static void In (ref int a)
38 static void Out (ref int a)
43 static int AddArray (params int [] valores)
47 for (int i = 0; i < valores.Length; i++)
53 public static int Main ()
58 int [] arr = new int [2] { 0, 1 };
68 if (Bar (i, j, 5, 4, 3, 3, 2) != 19)
71 //if (Bar (1, arr) != 1)
83 int [] arr2 = new int [2] {1, 2};
85 if (AddArray (arr2) != 3)