Code cleanup un-cleaning Linq statement?
Hi,
Is there a reason that R# should take this original code:
var orderedCategories = from c in metaData.Categories
orderby c.DisplayOrder
select c;
and after Cleanup make it into this code?
IOrderedQueryable]]> orderedCategories = from c in metaData.Categories
orderby c.DisplayOrder
select c;
This is what it's doing in build RC1 and I'm wondering why it is necessary to Un-var the statement.
Thanks,
Lee
Please sign in to leave a comment.
Check your ReSharper settings that control how vars are to be used. You can configured R# to use vars all the time, some of the time (except for simple types, for example), none of the time, etc.