using System; public class Test { public static void Main() { var b = new string[] {"One", "Two", "Three"}; Console.WriteLine(Foo(b)); Console.WriteLine(Foo("Four", "Five")); } public static int Foo(params string[] test) { return test.Length; } }