473,321 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Vb.Net to C# Conversion

Hi guys,

It wil be very helpful if sumone could give me the pros and cons,Guidelines
or links for converting Vb.net projects to c#.

Regards
Rajesh
Jan 19 '06 #1
8 1318
Rajesh wrote:
It wil be very helpful if sumone could give me the pros and cons,Guidelines
or links for converting Vb.net projects to c#.


Well, I've had some success with Instant C# from Tangible Software.

Disclaimer: I've been given a free licence for it, so I'm biased in
terms of gratitude. I've also only used it on a single project.
However, it did well on that (and has got better at doing it as the
converter has improved; I've converted the same project a few times).

See http://www.instantcsharp.com

Jon

Jan 19 '06 #2
Thanks Jon

What additional work you had to do after converting the vb.net project to
c#.Actually the project was converted from asp 3.0 to vb.net.The code looks
very sloppy , complicated , confusing and dirty. Im just trying to figure
out the major components that can be redesigned in C# since im new to the
project and Im given the responsbility to redesign the entire project( Any
suggestion?).Im the Tech lead out here

Regards

Rajesh

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Rajesh wrote:
It wil be very helpful if sumone could give me the pros and cons,Guidelines or links for converting Vb.net projects to c#.


Well, I've had some success with Instant C# from Tangible Software.

Disclaimer: I've been given a free licence for it, so I'm biased in
terms of gratitude. I've also only used it on a single project.
However, it did well on that (and has got better at doing it as the
converter has improved; I've converted the same project a few times).

See http://www.instantcsharp.com

Jon

Jan 19 '06 #3
Rajesh wrote:
What additional work you had to do after converting the vb.net project to
c#.Actually the project was converted from asp 3.0 to vb.net.The code looks
very sloppy , complicated , confusing and dirty. Im just trying to figure
out the major components that can be redesigned in C# since im new to the
project and Im given the responsbility to redesign the entire project( Any
suggestion?).Im the Tech lead out here


I had very little to do after converting the project, but it was a
fairly small project. However, after converting it I went about
refactoring the code, and that let me get rid of a few VB-isms that
remained anyway.

Jon

Jan 19 '06 #4
Rajesh,
my experience with ASP classic converted to Vb.Net is that it is better to
start out fresh with C#, rather than attempting to convert once again to C#.
By this time it is probaby so ugly that this is the only sensible direction
to take.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Rajesh" wrote:
Thanks Jon

What additional work you had to do after converting the vb.net project to
c#.Actually the project was converted from asp 3.0 to vb.net.The code looks
very sloppy , complicated , confusing and dirty. Im just trying to figure
out the major components that can be redesigned in C# since im new to the
project and Im given the responsbility to redesign the entire project( Any
suggestion?).Im the Tech lead out here

Regards

Rajesh

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Rajesh wrote:
It wil be very helpful if sumone could give me the pros and cons,Guidelines or links for converting Vb.net projects to c#.


Well, I've had some success with Instant C# from Tangible Software.

Disclaimer: I've been given a free licence for it, so I'm biased in
terms of gratitude. I've also only used it on a single project.
However, it did well on that (and has got better at doing it as the
converter has improved; I've converted the same project a few times).

See http://www.instantcsharp.com

Jon


Jan 19 '06 #5
Thanks peter So if i had to convert from classic Asp or vb.net to C# do you
have any kind of checklist?
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:D9**********************************@microsof t.com...
Rajesh,
my experience with ASP classic converted to Vb.Net is that it is better to start out fresh with C#, rather than attempting to convert once again to C#. By this time it is probaby so ugly that this is the only sensible direction to take.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Rajesh" wrote:
Thanks Jon

What additional work you had to do after converting the vb.net project to c#.Actually the project was converted from asp 3.0 to vb.net.The code looks very sloppy , complicated , confusing and dirty. Im just trying to figure out the major components that can be redesigned in C# since im new to the project and Im given the responsbility to redesign the entire project( Any suggestion?).Im the Tech lead out here

Regards

Rajesh

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Rajesh wrote:
> It wil be very helpful if sumone could give me the pros and

cons,Guidelines
> or links for converting Vb.net projects to c#.

Well, I've had some success with Instant C# from Tangible Software.

Disclaimer: I've been given a free licence for it, so I'm biased in
terms of gratitude. I've also only used it on a single project.
However, it did well on that (and has got better at doing it as the
converter has improved; I've converted the same project a few times).

See http://www.instantcsharp.com

Jon


Jan 19 '06 #6
What kind of a "Checklist" would you need? What you probably need to do is
outline exactly what the original application does and carefully rewrite it
for the .NET Platform, taking advantage of what it has to offer with
best-practices coding techniques. I think a good outline of exactly what
each section of the app does is a good place to start.
Good luck!
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Rajesh" wrote:
Thanks peter So if i had to convert from classic Asp or vb.net to C# do you
have any kind of checklist?
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:D9**********************************@microsof t.com...
Rajesh,
my experience with ASP classic converted to Vb.Net is that it is better

to
start out fresh with C#, rather than attempting to convert once again to

C#.
By this time it is probaby so ugly that this is the only sensible

direction
to take.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Rajesh" wrote:
Thanks Jon

What additional work you had to do after converting the vb.net project to c#.Actually the project was converted from asp 3.0 to vb.net.The code looks very sloppy , complicated , confusing and dirty. Im just trying to figure out the major components that can be redesigned in C# since im new to the project and Im given the responsbility to redesign the entire project( Any suggestion?).Im the Tech lead out here

Regards

Rajesh

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
> Rajesh wrote:
> > It wil be very helpful if sumone could give me the pros and
cons,Guidelines
> > or links for converting Vb.net projects to c#.
>
> Well, I've had some success with Instant C# from Tangible Software.
>
> Disclaimer: I've been given a free licence for it, so I'm biased in
> terms of gratitude. I've also only used it on a single project.
> However, it did well on that (and has got better at doing it as the
> converter has improved; I've converted the same project a few times).
>
> See http://www.instantcsharp.com
>
> Jon
>


Jan 19 '06 #7
Hi,

"Rajesh" <bh***************@tenth-planet.com> wrote in message
news:OF**************@TK2MSFTNGP10.phx.gbl...
Thanks Jon

What additional work you had to do after converting the vb.net project to
c#.Actually the project was converted from asp 3.0 to vb.net


You better rewrite the entire thing, you could use the components in case
they use a VB6 dll or have some business logic well delimited.

The experience I have with ASP sites is that it's a big spaghetti with code
inside the html portion and one page doing several things depending of one
or more parameters


--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jan 19 '06 #8
Instant C# will provide some ToDo comments, but the rest of the adjustments
you'll have to make are mandated by the compiler. In other words, once you
take care of the ToDo's and get the final project to compile, that should be
the end of your adjustments. Naturally, you should ensure that your own
internal testing is satisfied.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter & VB to C++ converter
Instant J#: VB to J# converter

"Rajesh" wrote:
Thanks Jon

What additional work you had to do after converting the vb.net project to
c#.Actually the project was converted from asp 3.0 to vb.net.The code looks
very sloppy , complicated , confusing and dirty. Im just trying to figure
out the major components that can be redesigned in C# since im new to the
project and Im given the responsbility to redesign the entire project( Any
suggestion?).Im the Tech lead out here

Regards

Rajesh

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Rajesh wrote:
It wil be very helpful if sumone could give me the pros and cons,Guidelines or links for converting Vb.net projects to c#.


Well, I've had some success with Instant C# from Tangible Software.

Disclaimer: I've been given a free licence for it, so I'm biased in
terms of gratitude. I've also only used it on a single project.
However, it did well on that (and has got better at doing it as the
converter has improved; I've converted the same project a few times).

See http://www.instantcsharp.com

Jon


Jan 19 '06 #9

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

Similar topics

1
by: Stub | last post by:
Docs says that "The compiler does not use an explicit constructor to implement an implied conversion of types. It's purpose is reserved explicitly for construction." I put up code of three cases...
7
by: Michael Lehn | last post by:
Hi, I have a question regarding the conversion of objects. When is the conversion done by the constructor and when by the operator. My feeling tells me that the constructor is preferred. But...
16
by: TTroy | last post by:
Hello, I'm relatively new to C and have gone through more than 4 books on it. None mentioned anything about integral promotion, arithmetic conversion, value preserving and unsigned preserving. ...
31
by: Bjørn Augestad | last post by:
Below is a program which converts a double to an integer in two different ways, giving me two different values for the int. The basic expression is 1.0 / (1.0 * 365.0) which should be 365, but one...
11
by: Steve Gough | last post by:
Could anyone please help me to understand what is happening here? The commented line produces an error, which is what I expected given that there is no conversion defined from type double to type...
2
by: Alex Sedow | last post by:
Why explicit conversion from SomeType* to IntPtr is not ambiguous (according to standart)? Example: // System.IntPtr class IntPtr { public static explicit System.IntPtr (int); public...
3
by: Steve Richter | last post by:
here is a warning I am getting in a C++ .NET compile: c:\SrNet\jury\JuryTest.cpp(55) : warning C4927: illegal conversion; more than one user-defined conversion has been implicitly applied while...
0
by: Lou Evart | last post by:
DOCUMENT CONVERSION SERVICES Softline International (SII) operates one of the industry's largest document and data conversion service bureaus. In the past year, SII converted over a million...
0
by: dataentryoffshore | last post by:
Get a Discount up to 60% on data entry, data capture, dataentry services, large volume data processing and data conversion services through offshore facilities in India. Offshore data entry also...
21
by: REH | last post by:
It it permissible to use the constructor style cast with primitives such as "unsigned long"? One of my compilers accepts this syntax, the other does not. The failing one chokes on the fact that the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.