Reporter | 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); } }