[2020-02] Avoid following invalid pointers in mono_w32process_get_modules on Darwin...
[mono-project.git] / mono / tests / params.cs
blobb405df075ca097ba8b7bcb6612fee0deaa83c250
1 using System;
3 public class T {
5 static public void method (int nargs, string arg) {
6 int i;
7 Console.WriteLine ("Got single arg "+arg);
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]);
16 public static int Main() {
17 method (1, "hello");
18 method (2, "hello", "World");
19 method (3, "hello", "World", "blah");
20 return 0;