sboulema to .NET [email protected]English • 1 year agoAnnouncing .NET 8 Preview 5 - .NET Blogdevblogs.microsoft.comexternal-linkmessage-square2fedilinkarrow-up11arrow-down10cross-posted to: csharpdotnet[email protected]
arrow-up11arrow-down1external-linkAnnouncing .NET 8 Preview 5 - .NET Blogdevblogs.microsoft.comsboulema to .NET [email protected]English • 1 year agomessage-square2fedilinkcross-posted to: csharpdotnet[email protected]
minus-square@[email protected]linkfedilinkEnglish0•1 year agoI 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.
minus-squaresboulemaOPlinkfedilinkEnglish1•edit-21 year agoAgreed! Doesn’t feel natural. The IsEmpty check feels acceptable though…
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…