Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 324 Bytes

MA0063.md

File metadata and controls

9 lines (7 loc) · 324 Bytes

MA0063 - Use Where before OrderBy

Using Where clause after OrderBy clause requires the whole collection to be sorted and then filtered. Where should be called first to sort only the filtered items.

enumerable.Where(...).OrderBy(...) // compliant
enumerable.OrderBy(...).Where(...) // non-compliant