Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 172 Bytes

MA0031.md

File metadata and controls

10 lines (7 loc) · 172 Bytes

MA0031 - Optimize Enumerable.Count() usage

Replace Count() by a more optimized method

enumerable.Count() > 10;

// Should be
enumerable.Skip(10).Any();