Reporter | Vladimir Reshetnikov (nikov) |
---|---|
Created | Apr 27, 2012 8:10:25 AM |
Updated | Apr 27, 2012 8:10:25 AM |
Priority | Normal |
Type | Feature |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
using System; class C : IDisposable { static void Main() { var c = new C(); c.Dispose(); } public void Dispose() // To explicit implementation { } }
Actual:
using System; class C : IDisposable { static void Main() { var c = new C(); c.Dispose(); // error CS1061: 'C' does not contain a definition for 'Dispose' } void IDisposable.Dispose() { } }
Expected:
using System; class C : IDisposable { static void Main() { var c = new C(); ((IDisposable) c).Dispose(); // OK } void IDisposable.Dispose() { } }