6 public static void UseParams(params int[] list
)
8 for ( int i
= 0 ; i
< list
.Length
; i
++ )
9 Console
.WriteLine(list
[i
]);
13 public static void UseParams2(params object[] list
)
15 for ( int i
= 0 ; i
< list
.Length
; i
++ )
16 Console
.WriteLine((object)list
[i
]);
20 public static void Main()
23 UseParams2(1, 'a', "test");
25 int[] myarray
= new int[3] {10,11,12}
;