Convert VB.Net to C#, convert C# to VB.Net 
Author Message
 Convert VB.Net to C#, convert C# to VB.Net

Hi, I've chosen to do development in VB.Net over C# because I don't
want to program in another c-like language each with subtle
differences to the others I program in (VS/C++ and Java).

There are many examples of code out there in VB.Net and many examples
in c# and I constantly use them as reference or how-tos. Rarely are
both or the right language snippets available.

I write this post to ask whether there is a tool, whether available
third-party or as part of VS.Net (I am using VS.Net professional) that
will convert between c# and VB.Net and vice-versa. Most of the time
the conversion is trivial but I am getting a little frustrated in
recent days sourcing an example of something I want to do in one
language, and converting the snippet to another where the conversion
is not obvious.

My ideal application would be a small (and preferably free) utility
that I could past in a source-code snippet in one language, and select
one of two option buttons marked c# and VB.Net and see the two
different sources. Is something like this out there?
Thanks
David



Tue, 04 Oct 2005 23:06:57 GMT  
 Convert VB.Net to C#, convert C# to VB.Net
In 1-2 weeks, we will post an online service that offers the following
source code translations:

C#             ->  VB.NET
C#             ->  MC++
VB.NET    ->  C#
VB.NET   ->   MC++
Java          ->  C#
Java          ->  unmanaged Visual C++

more will be added later on,

visit our page, http://www.remotesoft.com on that time, and you'll be able
to perform your translations online,

Huihong


Quote:
> Hi, I've chosen to do development in VB.Net over c# because I don't
> want to program in another c-like language each with subtle
> differences to the others I program in (VS/C++ and Java).

> There are many examples of code out there in VB.Net and many examples
> in c# and I constantly use them as reference or how-tos. Rarely are
> both or the right language snippets available.

> I write this post to ask whether there is a tool, whether available
> third-party or as part of VS.Net (I am using VS.Net professional) that
> will convert between c# and VB.Net and vice-versa. Most of the time
> the conversion is trivial but I am getting a little frustrated in
> recent days sourcing an example of something I want to do in one
> language, and converting the snippet to another where the conversion
> is not obvious.

> My ideal application would be a small (and preferably free) utility
> that I could past in a source-code snippet in one language, and select
> one of two option buttons marked c# and VB.Net and see the two
> different sources. Is something like this out there?
> Thanks
> David



Wed, 05 Oct 2005 01:42:54 GMT  
 Convert VB.Net to C#, convert C# to VB.Net
Hello,

Quote:
> There are many examples of code out there in VB.Net and many examples
> in c# and I constantly use them as reference or how-tos. Rarely are
> both or the right language snippets available.

http://www.kamalpatel.net/ConvertCSharp2VB.aspx

http://csharpconverter.claritycon.com/Default.aspx

http://www.ragingsmurf.com/vbcsharpconverter.aspx

Regards,
Herfried K. Wagner



Wed, 05 Oct 2005 03:07:36 GMT  
 Convert VB.Net to C#, convert C# to VB.Net
You might want to look at this recent thread in regards to your decision to
choose VB.NET over C#

One more Benefit of C# over VB.NET

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&th=6e09171011a37c5...
=MPG.190b7da3431619f5989b83%40news.microsoft.com&frame=off


Quote:
> Hi, I've chosen to do development in VB.Net over c# because I don't
> want to program in another c-like language each with subtle
> differences to the others I program in (VS/C++ and Java).

> There are many examples of code out there in VB.Net and many examples
> in c# and I constantly use them as reference or how-tos. Rarely are
> both or the right language snippets available.

> I write this post to ask whether there is a tool, whether available
> third-party or as part of VS.Net (I am using VS.Net professional) that
> will convert between c# and VB.Net and vice-versa. Most of the time
> the conversion is trivial but I am getting a little frustrated in
> recent days sourcing an example of something I want to do in one
> language, and converting the snippet to another where the conversion
> is not obvious.

> My ideal application would be a small (and preferably free) utility
> that I could past in a source-code snippet in one language, and select
> one of two option buttons marked c# and VB.Net and see the two
> different sources. Is something like this out there?
> Thanks
> David



Fri, 07 Oct 2005 06:14:27 GMT  
 Convert VB.Net to C#, convert C# to VB.Net
The argument in the thread is not invalid and I agree with some parts.
But, if anyone can be bothered to read my ramble (excerpt taken from
one of your contributions to the thread)

Quote:
> If you learn C#, you will also be learning
> JavaScript for your web pages.

this is the crux of my reason for choosing VB.Net - to avoid adding
another C-like language to my repertoire, each with subtle differences
to all the C-like languages I already program in. As a professional
programmer I find myself maintaining several projects concurrently and
written in a variety of languages (inc. Java, VB, VBA, MSVC++ and
PL/SQL). Being a jack of all trades doesn't afford me the luxury of
specialising. Being a jack of all trades I find things very
frustrating at times because of the silly subtle differents between
the two similar languages. I looked initially and C# and thought of
the nightmare confusion I would have because I regularly program in
Java, all the similarities. It would be like revisiting all those
horrible subtle differences between VB and VBA - so close yet so far
away.

One of the lovely things about .Net is you can choose your language
and, given this choice, I have personally chosen VB.Net. The
investment in time for all of us in the framework base classes and
concepts. The language syntax (should be) the easy part for
professional programmers and if forced, we could all learn another. I
just wanted a quicky tool to do the (syntax) conversion for me. Their
are advocates, in a sense a form of in-fighting, that are suggesting
one of C# or VB.Net is the way to go. Personally I'm in favour of the
language options increasing - the common part for job security is the
framework/VM. The implementation - who really cares as there's a dirty
tool to do converting. And this is what I want.

Kind regards
David

Quote:

> You might want to look at this recent thread in regards to your decision to
> choose VB.NET over C#

> One more Benefit of C# over VB.NET

> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&th=6e09171011a37c5...
> =MPG.190b7da3431619f5989b83%40news.microsoft.com&frame=off



> > Hi, I've chosen to do development in VB.Net over c# because I don't
> > want to program in another c-like language each with subtle
> > differences to the others I program in (VS/C++ and Java).

> > There are many examples of code out there in VB.Net and many examples
> > in c# and I constantly use them as reference or how-tos. Rarely are
> > both or the right language snippets available.

> > I write this post to ask whether there is a tool, whether available
> > third-party or as part of VS.Net (I am using VS.Net professional) that
> > will convert between c# and VB.Net and vice-versa. Most of the time
> > the conversion is trivial but I am getting a little frustrated in
> > recent days sourcing an example of something I want to do in one
> > language, and converting the snippet to another where the conversion
> > is not obvious.

> > My ideal application would be a small (and preferably free) utility
> > that I could past in a source-code snippet in one language, and select
> > one of two option buttons marked c# and VB.Net and see the two
> > different sources. Is something like this out there?
> > Thanks
> > David



Fri, 07 Oct 2005 16:38:45 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Tell me you experience in convert code from VB 6 to VB.NET or C#

2. Code Convert from C# to VB.Net

3. How to Convert Escape Characters from C# to VB.NET

4. Convert VB.NET code to C#?

5. Convert C# to VB.NET

6. IntelliSense in VS.NET (C# versus VB.NET)

7. VB.NET: Steps for Converting a Windows .NET Application to a Web .NET Application

8. VB to C# or C# to VB convertor

9. Convert the following C# code to VB please

10. Help ?? Convert C# code into VB

11. trying to convert C# example to VB

12. Need help converting a C# function to VB

 

 
Powered by phpBB® Forum Software