且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Visual Studio 2015中将完整的c#项目转换为vb

更新时间:2023-11-14 19:39:34

你为什么不用d ll从VB代码编译? VB和C#生成相同的.NET IL代码。因此,从C#编译的dll将可用于您的VB项目。



另一方面,如果您的目标是学习如何翻译,请通过工具会打败目的。更好地学习C#的基础知识并自己翻译成VB;它将更具教育性。



否则,存在一些免费工具来进行转换;在Google上进行简单的c#to vb.net搜索会产生大约16,600,000个结果:)
Why don't you just use the dll compiled from the VB code? VB and C# produce the same .NET IL code. So compiled dll from C# will be usable in your VB project.

If, on the other hand, your goal is to learn how to translate, having it done by a tool would defeat the purpose. Better learn the basics of C# and translate to VB yourself; it will be much more educative.

Otherwise, there exist some free tools to do the conversion; a simple 'c# to vb.net' search on google leads to about 16,600,000 results :)