You can read all the C# performance tips from the following links,
Many times, developers use List.Count() to check whether a list has data or is empty, before iterating. Here, we will compare the execution time of List.Count() and List.Any().
The result suggests that we should use List.Any() over List.Count() wherever possible.