Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (21 sloc) 817 Bytes

RCS1200: Call 'Enumerable.ThenBy' instead of 'Enumerable.OrderBy'

Property Value
Id RCS1200
Category Usage
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

var x = items.OrderBy(f => f.Surname).OrderBy(f => f.Name); // RCS1200

Code with Fix

var x = items.OrderBy(f => f.Surname).ThenBy(f => f.Name);

See Also

(Generated with DotMarkdown)