public static void Main()
Console.WriteLine(TestParams(1));
Console.WriteLine(TestParams(1, 2, 3));
public static string TestParams(object first, params object[] rest)
return rest == null ? "Rest is null" : (rest.Length == 0 ? "Rest is empty" : "Rest has content");