Resharper hangs with anonymous types and lamda expressions

After writing this code segment, the static analysis seems to make the
entire editor hang for seconds at a time. Not really sure what is wrong, but
I noticed that if I replaced the anonymous type with a "real" type it works
fine. Seems to be when i throw the lambda into the mix that everything goes
wrong though. (The code makes no sense, but it is the easiest I could write
that would reproduce the problem. I'm running build 738, but it has been
this way for a while now.

var tst = Process.GetProcesses()
.GroupBy(a => a.ProcessName)
.Select(item => new
{
ProcessName = item.Key,
MinWorkingSet = item.Min(b =>
b.WorkingSet64),
MaxWorkingSet = item.Max(c =>
c.WorkingSet64)
});
Console.WriteLine(tst);

Regards,
Morty

1 comment
Comment actions Permalink

Hello,

We appreciate your feedback. The corresponding JIRA request has been created,
and you are welcome to monitor its status at http://www.jetbrains.net/jira/browse/RSRP-59360.

You may want to check our request tracking policy here: http://www.jetbrains.net/confluence/display/ReSharper/ReSharperIssueTracker

Best regards,
- Development Team.


0

Please sign in to leave a comment.