VB.NET转c#转换 [英] VB.NET to c# convert

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

问题描述

嘿所有


我们公司最近开始使用.net并开始使用VB.NET。我们已经将
改为c#,但是已经用VB.NET编写了一些代码。我正在寻找

a转换器,只需要使用vb.net并将其转换为非常好的c#。

我找到了一两个,但是他们做了一些奇怪的东西,并想知道是否

有一个微软转换器或一般被接受为好的

社区?

解决方案

没有一个是完美的。最好的选择是转换和修复。


其中一个问题是VB.NET中有可用于C#的
训练轮。虽然大多数转换器都很好地将VB.NET转换为C#,但当两者都使用.NET类时,VB快捷方式通常会将

转换为。你的团队使用VB函数等越多,你就可以获得干净的翻译。与C#开发人员交谈的大部分翻译作者都是C#开发者,所以你可以看到偏见。 ;-)


-

Gregory A. Beamer

MVP; MCP:+ I,SE,SD,DBA


**************************** ********************

在盒子外面思考!

********* *******************************************

迈克尔尼科尔" < MI ********** @ woolworths.co.za>在消息中写道

news:u%**************** @ TK2MSFTNGP11.phx.gbl ...

嘿所有

我们公司最近开始使用.net并开始使用VB.NET。自从改为c#以来我们已经有了
,但是有一些代码已经用VB.NET编写了。我正在寻找
的转换器,只需要使用vb.net并将其转换为非常好的c#。
我找到了一两个,但他们做了一些奇怪的事情,并想知道是否
有一个微软的转换器或一般被公认为好的社区?



谢谢.. 。


想得太多......哦,VB的乐趣和遗产以及事物的津贴

那不应该...... )


" Cowboy(Gregory A. Beamer)[MVP]" <否************ @ comcast.netNoSpamM>在消息新闻中写了

:%2 **************** @ TK2MSFTNGP12.phx.gbl ...

有没有一个是完美的。最好的选择是转换和修复。

其中一个问题是VB.NET有训练轮,C#中没有
。虽然大多数转换器都很好地将
VB.NET转换为C#,但当两者都在使用.NET类时,VB快捷方式通常会将
转换推高。你的团队使用VB函数等越多,你就不太可能有一个干净的翻译。我与之交谈过的大多数译者都是C#开发人员,所以你可以看到偏见。 ;-)

- Gregory A. Beamer
MVP; MCP:+ I,SE,SD,DBA

******************************** ****************
在盒子外面思考!
********************* *******************************
迈克尔尼科尔 < MI ********** @ woolworths.co.za>在消息中写道
新闻:u%**************** @ TK2MSFTNGP11.phx.gbl ...

嘿所有

我们公司最近开始使用.net并开始使用VB.NET。我们


因为

改为c#,但是已经用VB.NET编写了一些代码。我正在寻找


来获取

一个转换器,它只需要vb.net并将其转换为非常好的
c#。我找到了一两个,但他们做了一些奇怪的事情,想知道
,如果有一个微软的转换器或一个普遍接受的社区好的




雅知道什么,我发现我使用的对流机大多工作正常,它们好像是

无法将事件处理程序转换回委托声明
C#所需的
。我已经完成了很多翻译工作,而且我发现VB大部分时间都是C#

很容易死,但另一种方式通常有点痛苦。


这是一个黑客入侵的案例我害怕。



-


OHM(特里伯恩斯) )

。 。 。单手人。 。

如果你需要我的电子邮件,请问我


当你不知道自己在做什么时,过得很快


" Michael Nicol" < MI ********** @ woolworths.co.za>在消息中写道

news:%2 ****************** @ TK2MSFTNGP10.phx.gbl ...

谢谢...

想得太多......哦VB的乐趣和遗产以及事物的允许
那不应该......;)

Cowboy(Gregory A. Beamer)[MVP]" <否************ @ comcast.netNoSpamM>
在留言新闻中写道:%2 **************** @ TK2MSFTNGP12.phx.gbl ...

没有一个是完美的。最好的选择是转换和修复。

其中一个问题是VB.NET的训练轮可用于C#中不存在的

。虽然大多数转换器都很好地将


VB.NET

转换为C#,但当两者都使用.NET类时,VB快捷方式通常会将
转换为。您的团队使用VB函数等越多,


less

您可能有一个干净的翻译。大多数翻译作家我都知道

与C#开发者交谈,所以你可以看到偏见。 ;-)

- Gregory A. Beamer
MVP; MCP:+ I,SE,SD,DBA

******************************** ****************
在盒子外面思考!
********************* *******************************
迈克尔尼科尔 < MI ********** @ woolworths.co.za>在消息中写道
新闻:u%**************** @ TK2MSFTNGP11.phx.gbl ...

嘿所有

我们公司最近开始使用.net并开始使用VB.NET。我们


因为

改为c#,但是已经用VB.NET编写了一些代码。我是


正在寻找

一个转换器,只需要vb.net并将其转换为非常好的


c# 。我找到了一两个,但他们做了一些奇怪的事情,并且


想知道是否有一个微软转换器或者社区普遍认为是好的?





Hey all

Our company recently started using .net and started in VB.NET. We''ve since
changed to c#, but has some code already written in VB.NET. I''m looking for
a converter that will just take vb.net and convert it into farely nice c#.
I''ve found one or two, but they do some strange stuff and was wondering if
there is a Microsoft converter or one generally accepted as being good by
the community?

解决方案

There are none that are perfected. The best option is convert and fix.

One of the issues is there are training wheels available for VB.NET that are
not present in C#. While most of the converters do great translating VB.NET
to C#, when both are using .NET classes, the VB shortcuts often blow the
translation up. The more your team has used the VB functions, etc., the less
likely you have a clean translation. Most of the translator writers I have
conversed with are C# developers, so you can see the bias. ;-)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Michael Nicol" <mi**********@woolworths.co.za> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...

Hey all

Our company recently started using .net and started in VB.NET. We''ve since changed to c#, but has some code already written in VB.NET. I''m looking for a converter that will just take vb.net and convert it into farely nice c#.
I''ve found one or two, but they do some strange stuff and was wondering if
there is a Microsoft converter or one generally accepted as being good by
the community?



Thanks...

Figured as much... Oh the joys / legacy of VB and the allowance of things
that just shouldn''t be... ;)

"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote
in message news:%2****************@TK2MSFTNGP12.phx.gbl...

There are none that are perfected. The best option is convert and fix.

One of the issues is there are training wheels available for VB.NET that are not present in C#. While most of the converters do great translating VB.NET to C#, when both are using .NET classes, the VB shortcuts often blow the
translation up. The more your team has used the VB functions, etc., the less likely you have a clean translation. Most of the translator writers I have
conversed with are C# developers, so you can see the bias. ;-)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Michael Nicol" <mi**********@woolworths.co.za> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...

Hey all

Our company recently started using .net and started in VB.NET. We''ve


since

changed to c#, but has some code already written in VB.NET. I''m looking


for

a converter that will just take vb.net and convert it into farely nice c#. I''ve found one or two, but they do some strange stuff and was wondering if there is a Microsoft converter or one generally accepted as being good by the community?




Ya know what, I found that the conveters I used mostly work ok, they seem to
have trouble converting event handlers back into the delegate declaration
required by C#. Ive done a lot of translation both ways, and I find VB to C#
dead easy most of the time, but the other way is normally a bit of a pain.

Its a case of hacking it till it works Im afraid.


--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don''t know what you''re doing

"Michael Nicol" <mi**********@woolworths.co.za> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...

Thanks...

Figured as much... Oh the joys / legacy of VB and the allowance of things
that just shouldn''t be... ;)

"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...

There are none that are perfected. The best option is convert and fix.

One of the issues is there are training wheels available for VB.NET that are

not present in C#. While most of the converters do great translating


VB.NET

to C#, when both are using .NET classes, the VB shortcuts often blow the
translation up. The more your team has used the VB functions, etc., the


less

likely you have a clean translation. Most of the translator writers I have

conversed with are C# developers, so you can see the bias. ;-)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Michael Nicol" <mi**********@woolworths.co.za> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...

Hey all

Our company recently started using .net and started in VB.NET. We''ve


since

changed to c#, but has some code already written in VB.NET. I''m

looking for

a converter that will just take vb.net and convert it into farely nice


c#. I''ve found one or two, but they do some strange stuff and was

wondering if there is a Microsoft converter or one generally accepted as being good by the community?





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

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