linux-packaging-mono/mcs/tests/gtest-optional-16.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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");
}
}