Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (20 sloc) 528 Bytes
using System;
public class T {
static public void method (int nargs, string arg) {
int i;
Console.WriteLine ("Got single arg "+arg);
static public void method (int nargs, params string[] args) {
int i;
Console.Write ("Got "+nargs.ToString()+" args ");
Console.WriteLine ("("+args.Length.ToString()+"):");
for (i = 0; i < nargs; ++i)
Console.WriteLine (args [i]);
public static int Main() {
method (1, "hello");
method (2, "hello", "World");
method (3, "hello", "World", "blah");
return 0;
Something went wrong with that request. Please try again.