简体   繁体   English

C#到VB.NET代码转换器

[英]C# to VB.NET Code Converter

I need a C# to VB.NET code converter, and I'm willing to pay. 我需要一个C#到VB.NET代码转换器,我愿意付钱。 I want something that's ultra convenient, as I want to reduce the amount of copy/paste that I have to do... so could anybody give me some tips to what is out there? 我想要一些非常方便的东西,因为我想减少我必须做的复制/粘贴量...那么有人可以给我一些提示吗? I want processing in bulk too, and to support the latest operations (LINQ, new VB inline-function support and all). 我也希望批量处理,并支持最新的操作(LINQ,新的VB内联函数支持等)。

Thanks. 谢谢。

I have Tangible Software's Instant VB that I use. 我有使用Tangible Software的Instant VB。 It seams to work very well. 接缝工作得非常好。 It will do LINQ, Full projects, files and snippets. 它将执行LINQ,完整项目,文件和片段。

http://www.tangiblesoftwaresolutions.com/Product_Details/Instant_VB.html http://www.tangiblesoftwaresolutions.com/Product_Details/Instant_VB.html

One roundabout way to go about it is to disassemble an assembly using RedGate's .NET Reflector , and export the VB/C# code. 一个迂回的方法是使用RedGate的.NET Reflector反汇编程序集,并导出VB / C#代码。

Reflector can loose some of the code flavor in the conversion/dissassembly, but I've always been able to get it to compile. Reflector可以在转换/反汇编中丢失一些代码风格,但我总是能够编译它。

I've used several free tools online, but have found their correctness to be spotty at best. 我已经在线使用了几种免费工具,但发现它们的正确性至多是不稳定的。 The one @Jeremy refers to is fairly decent, but lacks some recent .NET features. @Jeremy指的是相当不错的,但缺少一些最近的.NET功能。 Odds are it will meet your needs. 可能性很大,它将满足您的需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM