RCS1200: Call 'Enumerable.ThenBy' instead of 'Enumerable.OrderBy'
Properties
Property | Value |
---|---|
Default Severity | Info |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
var x = items.OrderBy(f => f.Surname).OrderBy(f => f.Name);
fix.cs
var x = items.OrderBy(f => f.Surname).ThenBy(f => f.Name);