[Edit]
+
0
-
0
c# check if List is empty
1 2 3 4 5List<int> list = new List<int>(); bool isEmpty = !list.Any(); Console.WriteLine(isEmpty); // Output: True
1 2 3 4 5List<int> list = new List<int>(); bool isEmpty = !list.Any(); Console.WriteLine(isEmpty); // Output: True