Closed igitur closed 6 years ago
Small improvement to use Linq .Any() is definitely preferred to .Count > 0
.Any()
.Count > 0
Presumably .Count is just a property lookup and works on net20 whereas .Any() requires Linq, net35 and has some (minor) enumerator overhead. Think I'll pass on this one, but thanks =)
.Count
Small improvement to use Linq
.Any()
is definitely preferred to.Count > 0