Elegance Technologies, Inc.

Converted Code

Download C-Sharpener For VB

It is without a doubt the best VB to C# translator I've seen! It did an excellent conversion job on my projects and I strongly recommend it to anybody that needs to translate VB to C#.
Brian Reisman, MCAD, MCDBA, MCSE, MCSD, MCT
Microsoft Corporation
Author of the Sybex Press book titled "Visual Basic .NET Windows and Web Applications Study Guide"
What a time saver! I had to convert six different VB projects for a book I had written. I manually converted the first project and quickly realized what a time consuming process it was. The C-Sharpener for VB product was easy to use, did a thorough job and saved me countless hours of boring and tedious work. It's a great product!!!
Sara Rea, MCSD, MCDBA
Senior Developer, Public System Associates
Author of Addison Wesley book titled "Building Intelligent .NET Applications: Agents, Data Mining, Rule-based systems, and Speech Processing"

Customers

Here are some of the organizations that have purchased C-Sharpener For VB:

  • Bureau of National Affairs
  • Capital One
  • CGI
  • Cisco Systems
  • Citigroup
  • City of San Antonio
  • Credit Suisse First Boston
  • DaimlerChrysler
  • Ingersoll-Rand
  • Iomega Corporation
  • Intel
  • Hewlett-Packard
  • Legg Mason
  • Lehman Brothers
  • LexisNexis
  • Microsoft
  • Misys
  • Monsanto
  • NIH
  • Northwestern Mutual
  • Pearson
  • Sharp
  • State of Louisiana
  • UPS
  • U.S. Army
  • Xerox
  • Yale University

We are committed to providing the best product for converting Visual Basic .NET to C#—quickly, easily and accurately. To that end, we stand behind C-Sharpener For VB and its successes and are proud to share them with you.

Statistics

Curious about what other people are doing with C-Sharpener For VB? Here are some statistics our users have provided.

Note: When you convert code, C-Sharpener For VB gives you the option of sending us statistics about your conversion project. Nothing private or proprietary is ever sent or used in our reports.

Total User Reported Conversions Since June 2004
All Files Converted Source Files Converted Lines of Code Converted
460,230 159,528 41,875,884
Top 10 Largest User Reported Conversions
Date Project Type Lines of Code Converted
2/8/2007Windows354,576
11/1/2007Windows354,576
5/9/2005Web280,641
10/13/2004Windows202,058
9/19/2004Windows201,394
9/29/2004Windows201,393
9/25/2004Windows201,392
6/28/2007Windows200,709
7/18/2007Windows200,702
10/28/2005Windows182,704
10 Most Recently User Reported Conversions
Date Project Type Lines of Code Converted
7/4/2008Windows3,243
7/3/2008Windows97
7/3/2008Windows97
7/3/2008Windows97
7/3/2008Web234
7/3/2008Windows158
7/3/2008Windows43
7/3/2008Windows43
7/3/2008Windows85
7/3/2008Windows85

Sample Converted Projects

Duwamish Bools

Duwamish Books is a sample web application installed with Visual Studio .NET. Microsoft provides both Visual Basic .NET and C# versions. We converted the entire Visual Basic project with C-Sharpener For VB with an overall conversion rate of 99.9%. The results are below for review.

Conversion Statistics For Duwamish Books
Project Name Source Files Converted Lines Of Code Converted Post Conversion Modifications Conversion Rate
BusinessFacade 4 636 0 100%
BusinessRules 3 641 0 100%
Common 6 755 0 100%
DataAccess 5 1,019 0 100%
SystemFramework 4 963 4 99.6%
Web 22 4,026 1 99.9%
Totals 44 8,040 5 99.9%

Overall, C-Sharpener For VB converted 8,040 lines of code. Listed below are the manual changes that were required to complete the conversion. Sometimes a single modification fixes several compilation errors and occasionally a single compiler error can require several modifications. The list below documents our modifications.

  • Preprocessor Directives (4 modifications)

    Preprocessor directives like #define can be assigned a value in Visual Basic .NET, but not in C#. We eliminated the assignments in the C# code.

  • Missing Items from Project (1 modification)

    Some projects do not include all the files necessary in the actual Visual Basic .NET project. In Duwamish Books, none of the image files were contained in the final project, even though they exist in the same directory as the project.We manually copied the image files to the C# project.

Both the original and converted Visual Basic .NET projects are downloadable for review. Modifications can easily be searched for using the comment tags <TRANSMOD> and </TRANSMOD>. The appropriate virtual directories for the web projects will need to be added to view the project. The required database from the original Microsoft sample will also have to be added to run the project.

FotoVision

FotoVision is a sample project available at MSDN Code Samples. It consists of a desktop, Web and Pocket PC sample applications. All code is written in Visual Basic .NET. We converted the FotoVision applications (except the unsupported Pocket PC application) with C-Sharpener For VB with an overall conversion rate of 99.8%. The results are below for your review.

Conversion Statistics For FotoVision
Project Name Source Files Converted Lines Of Code Converted Post Conversion Modifications Conversion Rate
FotoVisionWeb 15 2,013 7 99.7%
FotoVisionDesktop 47 15,899 19 99.9%
Totals 62 17,912 26 99.8%

Overall, C-Sharpener For VB converted 17,912 lines of code. Listed below are the major manual changes that were required to complete the conversion. Sometimes a single modification fixes several compilation errors and occasionally a single compiler error can require several modifications.

  • Accessing Inherited Private Members (6 Modifications)

    In VB, the private members of the base class can be accessed in derived class (E.g. System.Windows.Forms. _timer). We modified the converted code by replacing these with the corresponding protected/public members.

  • Ambiguous Reference (3 Modifications)

    In the converted C# code, some ambiguous refererence occurred. We corrected the C# code by using fully qualified names.

  • Member Hides Inherited Member (3 Modification)

    In VB, it is not necessary to use the override keyword to override a member method. However, C# code should contain an override or new keyword in the declaration. We added a new keyword in the method declaration in the converted C# code.

Both the original and converted Visual Basic .NET projects are downloadable for review. Modifications can easily be searched for using the comment tags <TRANSMOD> and </TRANSMOD> . The appropriate virtual directories for the web project will need to be added to view the web project.