Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-288114: OrderByDescending() after a OrderBy() should give a warning

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Feb 1, 2012 6:24:21 PM
Updated Feb 13, 2012 7:59:53 PM
Resolved Feb 13, 2012 7:59:53 PM
Priority Major
Type Feature
Fix versions Next
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions 6.1.1
Fixed in build No Fixed in build
I just hit a bit of code:
.OrderBy(p => p.StartRecord.Date).OrderByDescending(p => p.RevertRecord.Date) 

That should have been
.OrderBy(p => p.StartRecord.Date).ThenByDescending(p => p.RevertRecord.Date)


I think resharper would give a warning if more then one "orderby" or "orderByDescending" is used in a single statement.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>