473,800 Members | 2,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.net - C# converter

Hi,

My company wants to migrate all our apps from vb.net to c#.
Can someone recommend a good migrate/convert tool?
I am hoping that such a tool can do a 90-95% work for me, and I will do the rest :)

I am using VS 2005.

thanks

Sep 16 '06 #1
12 2680
Tana wrote:
My company wants to migrate all our apps from vb.net to c#.
Can someone recommend a good migrate/convert tool?
I am hoping that such a tool can do a 90-95% work for me, and I will do
the rest :)

I am using VS 2005.
Several such tools exist.

Local apps and web apps.

I do not use VS.

SharpDevelop has a little tool to do it.

You can find a lot of alternatives via Google.

90-95% does not sound unrealistic, but you may still
want a person to go over the code anyway.

Arne
Sep 16 '06 #2
Tana,

http://dotnet.mvps.org/dotnet/faqs/?...erters&lang=en

Be aware that converting from C# to VB.Net is much easier than visa versa and therefore there are much more good C#->VB.Net converters than good VB.Net -C# converters.

I hope this helps,

Cor
"Tana" <ta**@verizon.n etschreef in bericht news:%2******** *********@TK2MS FTNGP06.phx.gbl ...
Hi,

My company wants to migrate all our apps from vb.net to c#.
Can someone recommend a good migrate/convert tool?
I am hoping that such a tool can do a 90-95% work for me, and I will do the rest :)

I am using VS 2005.

thanks

Sep 16 '06 #3
You can expect much better than 90-95%.
Try the various demo/trial editions of the available converters (including
ours), and pick the best one.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
C# Code Metrics: Quick metrics for C#
"Tana" wrote:
Hi,

My company wants to migrate all our apps from vb.net to c#.
Can someone recommend a good migrate/convert tool?
I am hoping that such a tool can do a 90-95% work for me, and I will do the rest :)

I am using VS 2005.

thanks
Sep 16 '06 #4
I don't think that's true. We make both VB to C# and C# to VB converters and
they each have major challenges:

VB to C#:
The main challenge is to sort out the extremely high level of ambiguity and
diverse syntax alternatives. In addition, there are syntax alternatives from
*many* years back that are still supported in VB.NET.

C# to VB:
One main challenge is parsing - since there is no one-to-one correspondence
of line to statement you have to be able to parse possibly fragmented or
combined C# lines into sensible C# statements. Another challenge is that C#
doesn't spell out everything in agonizing detail like VB, so you need to work
harder to identify things (e.g., is the entity after the colon in a class
header a class or interface?, e.g., which methods will need "Implements " tags
- you need to have logic to accurately determine that).
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
C# Code Metrics: Quick metrics for C#
"Cor Ligthert [MVP]" wrote:
Tana,

http://dotnet.mvps.org/dotnet/faqs/?...erters&lang=en

Be aware that converting from C# to VB.Net is much easier than visa versa and therefore there are much more good C#->VB.Net converters than good VB.Net -C# converters.

I hope this helps,

Cor
"Tana" <ta**@verizon.n etschreef in bericht news:%2******** *********@TK2MS FTNGP06.phx.gbl ...
Hi,

My company wants to migrate all our apps from vb.net to c#.
Can someone recommend a good migrate/convert tool?
I am hoping that such a tool can do a 90-95% work for me, and I will do the rest :)

I am using VS 2005.

thanks
Sep 16 '06 #5
David,
>Be aware that converting from C# to VB.Net is much easier than visa versa
and therefore there are much more good C#->VB.Net converters than good
VB.Net -C# converters.
>I don't think that's true. We make both VB to C# and C# to VB converters
and
they each have major challenges:
You mean that Tana can take any VB.Net -C# Sharp converter and it should
not be precisely your product?

While writing my text I was thinking about your product because I know how
attentionful you are. I am not sure anymore if I have expirience with your
product. However, I have seen much more C# -VB.Net converters than visa
versa.

I have not the idea that it is because there are more people converting from
C# to VB.Net (I have in fact lately only seen one in the language.vb
newsgroup who did that completely).

:-)

Cor

Sep 16 '06 #6
David,

I'm just curious. Does your C# to VB.NET converter handle anonymous
methods well?

Brian

David Anton wrote:
You can expect much better than 90-95%.
Try the various demo/trial editions of the available converters (including
ours), and pick the best one.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
C# Code Metrics: Quick metrics for C#
Sep 16 '06 #7
It converts some cases of anonymous methods, but not all.
For example, anonymous methods referencing local variables in the scope of
the anonymous method call ('captured variables') are not converted.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
C# Code Metrics: Quick metrics for C#
"Brian Gideon" wrote:
David,

I'm just curious. Does your C# to VB.NET converter handle anonymous
methods well?

Brian

David Anton wrote:
You can expect much better than 90-95%.
Try the various demo/trial editions of the available converters (including
ours), and pick the best one.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
C# Code Metrics: Quick metrics for C#

Sep 16 '06 #8
David,

Yeah, I figured captured variables would be difficult to convert. In
fact, I'm not sure how you would do it without implementing part of the
C# specification. There are some intricate rules regarding the
lifetime of the captured variables. It would be cool if you could
somehow accomplish that without too much effort.

Brian

David Anton wrote:
It converts some cases of anonymous methods, but not all.
For example, anonymous methods referencing local variables in the scope of
the anonymous method call ('captured variables') are not converted.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
C# Code Metrics: Quick metrics for C#
Sep 16 '06 #9
Thank you everybody for your help, you people rule :)

David, I will definitely try your software.
"Tana" <ta**@verizon.n etwrote in message news:%2******** *********@TK2MS FTNGP06.phx.gbl ...
Hi,

My company wants to migrate all our apps from vb.net to c#.
Can someone recommend a good migrate/convert tool?
I am hoping that such a tool can do a 90-95% work for me, and I will do the rest :)

I am using VS 2005.

thanks

Sep 17 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4444
by: techy techno | last post by:
hii Experts..!! I need someone to tell me where I can get a Currency Converter like http://cconv.textor.com please can someone tell me where I can get it I need it for free + I dont need any link of the co. the code for this is here but when I change it it just says unauthorize
5
2947
by: jorfei | last post by:
I have written a component with a property IPAdrress of type System.Net.IPAddress. To ease the configuration of the component at design time, I have written a type converter for the type System.Net.IPAddress. The type System.Net.IPAddress, as you know, is provided by Microsoft and I have no choice but to apply the type converter on the IPAddress property of the component itself (instead of the type System.Net.IPAddress). All normal...
3
2240
by: Jon Rea | last post by:
is there a c# -> c++ code converter out there ? Hi people, I was just wondering if there is a C# to C++ converter out there. I have some working c# code and need to integrate it into a non-managed c++ program. The classes used are all user defined and use simple floats ints etc, so its just a matter of converting syntax and adding proper pointers. A converter program would therefore save me a lot of time ...
2
3754
by: TheMadHatter | last post by:
does anybody know of a half decent converter????? I tried the "VBConversions VB.Net to C# Converter" with less than satisfactory results, and an unnecisary hole in the bank.
0
1556
by: Max Power | last post by:
I'm having some trouble with an RTF converter called Logictran R2Net when two users access my site simultaneously. My application simply runs an SQL query (based on parameters typed by user) that returns a string of RTF data from the database, somethign like: SELECT text_data FROM table WHERE text_id = @param. The text_data that is returned is RTF, so I need to convert it to HTML for displaying in the browser. This functionality is...
4
2172
by: John | last post by:
Hi Is there a way to convert whole c# projects (or solutions) to vb.net projects or solutions? Most converters I have come across only convert snippets. Thanks Regards
1
1908
by: Nikola | last post by:
Hellooo! Can someone help me please. I tipe this code and it don't work!!! Whyyyyyy. <html> <head> <title>Text object value</title> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- function upperMe() { document.converter.ulaz.value =
10
2510
by: esha | last post by:
I tried several online converters. In many case they do the job, but sometimes give some mess. I think that all converters I know are old, were created for VS 2003 and do not understand new stuff from VS 2005. For instance this block containing Using was not converted by anyone: Public Shared Function GetSiteSettings() As SiteSettings Using connection As New...
3
3749
by: John Dalberg | last post by:
I have been trying a few commerical vb.net to c# converters. None of them converts inline vb.net asp.net code? Is there any converter that can convert inline code (code in aspx files)? I don't want to manually move inline code to code behind unless there's a utlity which automates this process. John Dalberg
0
9691
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9092
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7582
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6815
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5473
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5607
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4150
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.