473,574 Members | 3,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1328
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.co m> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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.co m> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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*******@yaho o.nospammin.com > wrote in message
news:D9******** *************** ***********@mic rosoft.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.co m> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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*******@yaho o.nospammin.com > wrote in message
news:D9******** *************** ***********@mic rosoft.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.co m> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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******** ******@TK2MSFTN GP10.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.co m> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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
5645
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 at the bottom. Hope you can help me understand the "explicit" keyword and its usage. Specifically, Is "explicit" keyword only associated with...
7
3255
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 I couldn't find the exact rule in the C++ standard. And what if the classes have template parameters? It would be great if somebody could get...
16
5109
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. And K&R2 mentions "signed extension" everywhere. Reading some old clc posts, I've beginning to realize that these books are over-generalizing the...
31
6596
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 variable becomes 364 and the other one becomes 365. Does anyone have any insight to what the problem is? Thanks in advance. Bjørn
11
7603
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 Test. I expected the same error from the following line, but it compiles fine. The double is silently truncated to an int and then fed in to the...
2
6864
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 static explicit System.IntPtr (long);
3
4445
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 calling the constructor 'MyString::MyString(const wchar_t *)' c:\SrNet\jury\JuryTest.h(21) : see declaration of 'MyString::MyString' The class...
0
2286
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 pages to a variety of formats. SII's service bureau has a reputation as being a least-cost provider that can offer a timely turnaround with 100%...
0
1854
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 provides form data entry, data capture, HTML/SGML coding, image scanning, file conversion with low cost, high quality,99.98% accuracy and time bound....
21
2430
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 type is not a single identifier or keyword. Which one is correct? For example: unsigned long x = unsigned long(y); REH
0
7764
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...
0
8110
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8273
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6514
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...
0
3775
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...
0
3794
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2277
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
0
1102
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.