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

RSRP-189715: 'Convert lambda to method group' is not suggested

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Aug 27, 2010 5:41:53 PM
Updated Feb 28, 2012 8:12:42 PM
Resolved Feb 28, 2012 8:12:42 PM
Priority Normal
Type Bug
Fix versions Next
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
using System.IO;
using System.Threading;

class Program
{
    static void Foo()
    {
        var x = new {f = File.OpenRead("")};
        new Thread(() => x.f.Close());
        // Expected result: new Thread(x.f.Close);
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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