Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/263.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# #-->;转到定义==>;VB.NET_C#_Vb.net_Visual Studio_Visual Studio 2010_C# To Vb.net - Fatal编程技术网

C# #-->;转到定义==>;VB.NET

C# #-->;转到定义==>;VB.NET,c#,vb.net,visual-studio,visual-studio-2010,c#-to-vb.net,C#,Vb.net,Visual Studio,Visual Studio 2010,C# To Vb.net,我在VS2010中有一个解决方案 有两个DLL项目:一个是C#WPF中的UserControl(myCSharpUC),另一个是VB.NET中的-WinForm UserControl(myVbUC) 实际上,在myCSharpUC中,我有一个myVbUC的实例: myCSharpUC { private MyVbUC vbControl; ... somemethod() { vbControl.MyProperty } } 有没有办法

我在VS2010中有一个解决方案

有两个DLL项目:一个是C#WPF中的UserControl(myCSharpUC),另一个是VB.NET中的-WinForm UserControl(myVbUC)

实际上,在myCSharpUC中,我有一个myVbUC的实例:

myCSharpUC {
    private MyVbUC vbControl;

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

有没有办法直接“导航到
MyProperty
的定义”呢?(实际上只显示元数据)

,解决方法有两种:使用
ctrl+,
或使用一些添加此功能的插件,如resharper(将在
F12
中添加此功能)。

我不知道它是否真的对您有帮助,但看看下面的链接:下面关于Resharper的gorohoroh评论是一种方式。我也在寻找这个问题的其他解决方案,但是如果你安装resharper,它的“转到定义”将在c#和vb.net之间工作。我没有“外部”源。。。一个小的解决方案,有2个用户控件和一个表单。