c# - Go to implemented method rather than interface -
oftentimes when browsing code, i'll come across this:
public class fruity { private iorange _orange; public fruity() { _orange = new orange() iorange; } public void preparefruit() { return _orange.peel(); } }
great, want see how peel method implemented. right-clicking on method gives me go definition takes me interface stub.
ok, strictly speaking, definition ascribed interface given private variable defined in way, there way go implementation?
there of course find references scatter-gun approach of calls, interfaces , concretions. source of implementation obvious in case should able jump i'd have thought...
evidently, there can ambiguity described nicely here:
go definition on concrete type
but surely, there should go implementation option when implementation crystal clear.
if double-click or highlight peel
, press ctrl+,
you'll "navigate symbol" window list actual implementation, second item. it's fastest way of finding without 3rd party tools. , unlike "find references", shows method definitions , not wherever it's called.
Comments
Post a Comment