lambda statement incorrectly highlighted in red

Hi guys

I'm looking for an option to fix ReSharper so that my lambda statements will not be flagged as wrong hence leaving my class with a red square in the upper right corner...

ReSharper version: 4.5.1288.2, VS2008 SP1


    for (var filer = _importfolder.GetFiles(Filter).OrderByDescending(fi => fi.LastWriteTime).ToList();
         filer.Count > 0;
         filer = _importfolder.GetFiles(Filter).OrderByDescending(fi => fi.LastWriteTime).ToList())

Both the "=>" have a red wave under them indicating they are wrong.

What can I do to get ReSharper to accept the above code?

Thanks in advance
1 comment
Andrey Serebryansky
Comment actions Permalink

     This problem will be fixed in the upcoming ReSharper 5.0. Thank you!

Andrey Serebryansky

Support Engineer

JetBrains, Inc

"Develop with pleasure!"

Please sign in to leave a comment.