我经常需要在VB.Net和Visual C#中编程,所以如果有人可以在VB.net和C#中为类提供参考列表会很有帮助。
我的意思是
VB中的My.Computer.Registry映射到C#中的Microsoft.Win32.Registry 。
同样,我想要其他类的参考。
Frequently i have to program in VB.Net and Visual C#, so it would be helpful if someone can provide with a list of Refrence for Classes of in VB.net and C#.
I mean like
My.Computer.Registry in VB Maps to Microsoft.Win32.Registry in C#.
Similarly i want a refrence of other classes.
最满意答案
在您的示例中,您可以在C#和VB.NET中使用后者。 前者是一个VB.NET“拐杖”(或“快捷方式”,很好地说),以便VB开发人员可以通过IntelliSense找到东西,并包含在VB中使用的特殊程序集中(但也可以不必要地引用它) C#)。 我的建议:不要使用“我的。*”,使用任何.NET语言提供的真实类(包括C#) - 它将使语言之间的移动更容易,你将能够更清楚地询问BCL问题所以。
In your example, you can use the latter in both C# and VB.NET. The former is a VB.NET "crutch" (or "shortcut", to put it nicely) so that VB developers can find stuff via IntelliSense, and are contained within a special assembly used in VB (but that can also needlessly be referenced from C#). My suggestion: don't use "My.*", use the real classes that are available from any .NET language (incl. C#) - it will make moving between languages easier and you will be able to ask BCL questions more clearly on SO.
VisualBasic.Net与Visual C#(VisualBasic.Net vs Visual C#)我经常需要在VB.Net和Visual C#中编程,所以如果有人可以在VB.net和C#中为类提供参考列表会很有帮助。
我的意思是
VB中的My.Computer.Registry映射到C#中的Microsoft.Win32.Registry 。
同样,我想要其他类的参考。
Frequently i have to program in VB.Net and Visual C#, so it would be helpful if someone can provide with a list of Refrence for Classes of in VB.net and C#.
I mean like
My.Computer.Registry in VB Maps to Microsoft.Win32.Registry in C#.
Similarly i want a refrence of other classes.
最满意答案
在您的示例中,您可以在C#和VB.NET中使用后者。 前者是一个VB.NET“拐杖”(或“快捷方式”,很好地说),以便VB开发人员可以通过IntelliSense找到东西,并包含在VB中使用的特殊程序集中(但也可以不必要地引用它) C#)。 我的建议:不要使用“我的。*”,使用任何.NET语言提供的真实类(包括C#) - 它将使语言之间的移动更容易,你将能够更清楚地询问BCL问题所以。
In your example, you can use the latter in both C# and VB.NET. The former is a VB.NET "crutch" (or "shortcut", to put it nicely) so that VB developers can find stuff via IntelliSense, and are contained within a special assembly used in VB (but that can also needlessly be referenced from C#). My suggestion: don't use "My.*", use the real classes that are available from any .NET language (incl. C#) - it will make moving between languages easier and you will be able to ask BCL questions more clearly on SO.
发布评论