fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var b = new string[] {"One", "Two", "Three"};
  8. Console.WriteLine(Foo(b));
  9.  
  10. Console.WriteLine(Foo("Four", "Five"));
  11. }
  12.  
  13. public static int Foo(params string[] test)
  14. {
  15. return test.Length;
  16. }
  17. }
Success #stdin #stdout 0.03s 33856KB
stdin
Standard input is empty
stdout
3
2