I have an ASP.NET WebForms 4.0 application that I built as a sole developer. I started it in VB/Webforms because that is what I knew at the time.
我有一个ASP.NET WebForms 4.0应用程序,我作为唯一的开发人员构建。我是在VB / Webforms中开始的,因为那是我当时所知道的。
I have now been doing C#/MVC and desperately want to switch the project over.
我现在一直在做C#/ MVC,并且迫切想要切换项目。
I know you can integrate MVC into Webforms (I've done that on another project). However, how can I move from VB to C#? I really don't want to start MVC in VB, so I feel the first thing I need to do is switch the project to VB.
我知道你可以将MVC集成到Webforms中(我已经在另一个项目中完成了)。但是,如何从VB转移到C#?我真的不想在VB中启动MVC,所以我觉得我需要做的第一件事就是将项目切换到VB。
If I want to move to C# slowly over time (part time development, as I add features), how can I go about doing that since it's an application and not a website? As far as I know, the application has to be all VB or C# unlike websites.
如果我想随着时间的推移慢慢转向C#(兼职开发,因为我添加功能),我怎么能这样做,因为它是一个应用程序而不是一个网站?据我所知,应用程序必须是所有VB或C#不像网站。
3 个解决方案
#1
1
This is an online translator for the two programming languages:
这是两种编程语言的在线翻译:
http://converter.telerik.com/
From my past experience it works pretty well.
根据我过去的经验,它运作良好。
#2
0
As I mentioned in the comment .
正如我在评论中提到的那样。
Webforms and MVC are two different technologies just concentrate on that and for vb to c# each part of vb can be converted to C# and there google will help a lot in that
Webforms和MVC是两种不同的技术,只关注它,对于vb到c#,vb的每个部分都可以转换为C#,google将帮助很多
anything in VB can converted to C#, all of them make use of the same framework but vb has inherited some old functions from the vb6 that can be converted to c# look at my answer to that question Using LSET or RSET in a c#-aspx application, what I have done in that is that I used ILSpy and opened Microsoft.VisualBasic dll and looked at the Strings class implementation the ILSpy allow you to view the code in vb or in C#
VB中的任何东西都可以转换为C#,所有这些都使用相同的框架,但是vb继承了vb6中的一些旧函数,可以转换为c#查看我对该问题的回答在ac#-aspx应用程序中使用LSET或RSET我所做的就是我使用了ILSpy并打开了Microsoft.VisualBasic dll并查看了Strings类的实现,ILSpy允许你在vb或C#中查看代码
#3
0
you can also try this url
你也可以尝试这个网址
developerfusion.com/tools/
This site provides conversion from C# to Vb.Net even you can also convert into Ruby and Python too using this.
这个站点提供从C#到Vb.Net的转换,即使你也可以使用它转换成Ruby和Python。
#1
1
This is an online translator for the two programming languages:
这是两种编程语言的在线翻译:
http://converter.telerik.com/
From my past experience it works pretty well.
根据我过去的经验,它运作良好。
#2
0
As I mentioned in the comment .
正如我在评论中提到的那样。
Webforms and MVC are two different technologies just concentrate on that and for vb to c# each part of vb can be converted to C# and there google will help a lot in that
Webforms和MVC是两种不同的技术,只关注它,对于vb到c#,vb的每个部分都可以转换为C#,google将帮助很多
anything in VB can converted to C#, all of them make use of the same framework but vb has inherited some old functions from the vb6 that can be converted to c# look at my answer to that question Using LSET or RSET in a c#-aspx application, what I have done in that is that I used ILSpy and opened Microsoft.VisualBasic dll and looked at the Strings class implementation the ILSpy allow you to view the code in vb or in C#
VB中的任何东西都可以转换为C#,所有这些都使用相同的框架,但是vb继承了vb6中的一些旧函数,可以转换为c#查看我对该问题的回答在ac#-aspx应用程序中使用LSET或RSET我所做的就是我使用了ILSpy并打开了Microsoft.VisualBasic dll并查看了Strings类的实现,ILSpy允许你在vb或C#中查看代码
#3
0
you can also try this url
你也可以尝试这个网址
developerfusion.com/tools/
This site provides conversion from C# to Vb.Net even you can also convert into Ruby and Python too using this.
这个站点提供从C#到Vb.Net的转换,即使你也可以使用它转换成Ruby和Python。