this post was submitted on 13 Jun 2023
2 points (100.0% liked)
.NET Programming
1 readers
1 users here now
.NET Programming
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I don't think I am a fan of the analyzer to prefer
Count
orLength
checks over.Any()
. The readability of any is much clearer in my opinion.Agreed! Doesn't feel natural. The IsEmpty check feels acceptable though...