Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / params.cs
1 using System;
2
3 public class T {
4
5         static public void method (int nargs, string arg) {
6                 int i;
7                 Console.WriteLine ("Got single arg "+arg);
8         }
9         static public void method (int nargs, params string[] args) {
10                 int i;
11                 Console.Write ("Got "+nargs.ToString()+" args ");
12                 Console.WriteLine ("("+args.Length.ToString()+"):");
13                 for (i = 0; i < nargs; ++i)
14                         Console.WriteLine (args [i]);
15         }
16         public static int Main() {
17                 method (1, "hello");
18                 method (2, "hello", "World");
19                 method (3, "hello", "World", "blah");
20                 return 0;
21         }
22 }