Reporter | Vladimir Reshetnikov (nikov) |
---|---|
Created | Jul 13, 2008 2:57:41 PM |
Updated | Nov 8, 2011 7:43:28 PM |
Priority | Major |
Type | Feature |
Fix versions | Mirabile Futurum |
State | Open |
Assignee | Kirill Skrygan (kirillskrygan) |
Subsystem | Search |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
using System.ComponentModel; namespace DebuggingTools { public class Stuff { public static void Foo(IComponent x) { x.Dispose(); } } }
Put the caret on Dipose method invocation, and invoke 'Goto Inheritor' (Ctrl+Alt+B). ReSharper searches for all methods implementing IDisposable.Dispose. It makes sense to search for methods implementing IDisposable.Dispose only in types, implementing IComponent, because only those methods can be invoked in the given context.