public static void Main()
Console.WriteLine("null");
Console.WriteLine("new int[0]");
Console.WriteLine("new int[] { 1, 2 }");
Test(new int[] { 1, 2 });
private static void Test(int[] array)
Console.WriteLine("array == null || array.Length == 0 => " + (array == null || array.Length == 0));
Console.WriteLine("array?.Any() == false => " + (array?.Any() == false));