Announcing .NET 8 Preview 5 - .NET Blog

https://devblogs.microsoft.com/dotnet/announcing-dotnet-8-preview-5/

10 points · 2 comments · view on lemmy.world

2 Comments

schmalls@lemmy.world · 1 pts · 3y (1 reply)

I don't think I am a fan of the analyzer to prefer Count or Length checks over .Any(). The readability of any is much clearer in my opinion.

sboulema@lemmy.world · 3 pts · 3y

Agreed! Doesn't feel natural. The IsEmpty check feels acceptable though...