this post was submitted on 13 Jun 2023
10 points (100.0% liked)

.NET Programming

267 readers
1 users here now

.NET Programming

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] schmalls 1 points 2 years ago (1 children)

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 3 points 2 years ago* (last edited 2 years ago)

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