andersnm / ExcelNumberFormat

Parse and render Excel number format strings
MIT License
79 stars 27 forks source link

Small improvement to use Linq #2

Closed igitur closed 6 years ago

igitur commented 6 years ago

Small improvement to use Linq .Any() is definitely preferred to .Count > 0

andersnm commented 6 years ago

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 =)