jukka, Just saw this C# rule, and I have to say I disagree: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1860
For the performance, sure, maybe, depending on the situation, but for readability, I find collection.Any() more readable than collection.Count() > 0.
#csharp #dotnet