a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
25 lines
337 B
C#
25 lines
337 B
C#
using System;
|
|
|
|
class MainClass
|
|
{
|
|
private static int TestParams (object ob = null, params object[] args)
|
|
{
|
|
if (ob != "a")
|
|
return 1;
|
|
|
|
if (args.Length != 4)
|
|
return 2;
|
|
|
|
foreach (object o in args) {
|
|
Console.WriteLine (o);
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
return TestParams ("a", "b", "c", "d", "e");
|
|
}
|
|
}
|