C# -->Go to Definition ==> VB.NET

时光总嘲笑我的痴心妄想 提交于 2019-12-31 02:46:26

问题


I have a solution in VS 2010.

There are two DLL projects: one UserControl in C# WPF (myCSharpUC) and other - WinForm UserControl in VB.NET (myVbUC)

Actually in myCSharpUC I have an instance of myVbUC:

myCSharpUC {
    private MyVbUC vbControl;

    ...
    somemethod()
    {
       vbControl.MyProperty
    }
}

Is there a way to "navigate to definition" of MyProperty directly? (actually only metadata is displayed)


回答1:


It's a known issue, the workaround are two: use ctrl+, or use some plugin that add this function, like resharper (that will add this function in the F12).




回答2:


ReSharper's Navigate to External Sources?



来源:https://stackoverflow.com/questions/4041647/c-sharp-go-to-definition-vb-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!