我想将vb.net转换为C# [英] I want to convert vb.net to c#

查看:89
本文介绍了我想将vb.net转换为C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我将此代码转换为c#

如何将IP地址转换为国家名称 [从VB到C#的转换工具 [

Please help me to convert this code to c#

How to convert IP address to country name[^]


I tried to convert at the site of
Convertion Tool from VB To C#[^]

But I failed

推荐答案

没有人会为您编写完整的转换.如果您需要它来工作,可以购买比免费转换器更好用的转换器.无论哪种方式,在VB和C#之间进行转换都是很容易的,只有一些基本语法会发生变化.从在线转换器中获取您所拥有的东西,找出哪些位不正确,然后找出如何对其进行转换.您可以在此处提出更具体的问题,但要求我们为您进行转换不太可能.
No-one is going to write a full conversion for you. If you need it for work, you can buy converters that work better than the free ones. Either way, converting between VB and C# is easy, only some basic syntax changes. Take what you''ve got from the online converter, and figure out what bits are not right, then work out how to convert them. You could ask more specific questions here, but asking us to convert it for you, is not likely to work out.


转换的最佳方法是使用
The best way to convert is to use Reflector[^]

Just compile the code into an assembly and just place the assembly in the Reflector.

It converts everything perfectly to original source code (VB,C#, C++, Delphi etc).

;)


我已经使用过此在线转换器 [
I''ve used this online converter[^], but it''s pretty bad at converting. Most of the other online ones are just as bad (as Christian has already noted.

If you google "VB.Net to C# converter", you''ll get quite a few hits on commercial products. Keep in mind that none of them will be able to do a complete conversion on more complex projects, so you''re still going to have to be a programmer, and do some of it yourself.


这篇关于我想将vb.net转换为C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆