473,383 Members | 1,872 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,383 software developers and data experts.

going from vb.net to c#

i've seen before people say to go from vb.net to c# you need to compile and
then decompile to see the c#. can someone outline the steps for me to do
that?
Nov 20 '05 #1
15 1354
huh?

" - Dan -" <da*@domain.com> wrote in message
news:40***********************@news.twtelecom.net. ..
i've seen before people say to go from vb.net to c# you need to compile and then decompile to see the c#. can someone outline the steps for me to do
that?

Nov 20 '05 #2
Hi Dan,

I think that "people" are talking about IL DASM, with which you can see the
intermidiate code created by VB.net, which is by the way almost the same as
the code compiled by a C# program.

When you look in IL DASM code you might be get the idea looking at C.

..class public auto ansi Form1
extends [System.Windows.Forms]System.Windows.Forms.Form
{
} // end of class Form1
However this is no C#

Cor

Nov 20 '05 #3
JLW
Download .NET Reflector. It will give you pretty good decompile cod in
either VB.NET, C#, or Delphi. You can copy/paste this code, but be warned,
when VB/C# goes to IL, some things get goofed, and it can be a pain to
figure it out.

HTH,
JLW
" - Dan -" <da*@domain.com> wrote in message
news:40***********************@news.twtelecom.net. ..
i've seen before people say to go from vb.net to c# you need to compile and then decompile to see the c#. can someone outline the steps for me to do
that?

Nov 20 '05 #4
* " - Dan -" <da*@domain.com> scripsit:
i've seen before people say to go from vb.net to c# you need to compile and
then decompile to see the c#. can someone outline the steps for me to do
that?


I don't see any reason for doing that.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
The easiest way is with a VB.NET to C# converter.
I've had great luck with Instant C# (www.instantcsharp.com) which does
projects in addition to snippets, but there are lots of them:

Instant C#
Immunicode
Ellkay (V#)
GBVB
Devfusion
C-Sharpener

Nov 20 '05 #6
LOL, I think Herfried only helps when going from C# to VB.
Then, the reason is obvious! :-)

-Rob Teixeira [MVP]

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2g***********@uni-berlin.de...
* " - Dan -" <da*@domain.com> scripsit:
i've seen before people say to go from vb.net to c# you need to compile and then decompile to see the c#. can someone outline the steps for me to do that?


I don't see any reason for doing that.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #7
ps************@yahoo-dot-ca.no-spam.invalid (PseudoBill) wrote in message news:<40**********@127.0.0.1>...
The easiest way is with a VB.NET to C# converter.
I've had great luck with Instant C# (www.instantcsharp.com) which does
projects in addition to snippets, but there are lots of them:


the open source #develop IDE
http://www.icsharpcode.net

also includes vb -> C# and C# -> vb converters.

I briefly tested the vb -> C# converter, and it did pretty well. The
only unexpected issue I came across is that it doesn't convert single
line If expressions (If xyz Then foo) and doesn't leave the original
code line in (but does print a warning line).
Nov 20 '05 #8
On Mon, 10 May 2004 13:51:08 -0400, " - Dan -" <da*@domain.com> wrote:
i've seen before people say to go from vb.net to c# you need to compile and
then decompile to see the c#. can someone outline the steps for me to do
that?

There's a new VB.Net to C# Converter available at:

http://www.vbconversions.com

The trial version is free and will convert whole projects less than
750 lines of code.
Nov 20 '05 #9
* dc****@kc.rr.com scripsit:
i've seen before people say to go from vb.net to c# you need to compile and
then decompile to see the c#. can someone outline the steps for me to do
that?


There's a new VB.Net to C# Converter available at:

http://www.vbconversions.com

The trial version is free and will convert whole projects less than
750 lines of code.


SharpDevelop comes with a VB.NET -> C# converter too:

<URL:http://www.icsharpcode.com/OpenSource/SD/Default.aspx>

BTW: I can't see any reason for using one of these converters...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #10
Hi Herfried,
BTW: I can't see any reason for using one of these converters...

Do you mean you do it faster by hand?

:-))

Cor
Nov 20 '05 #11
* "Cor Ligthert" <no**********@planet.nl> scripsit:
BTW: I can't see any reason for using one of these converters...


Do you mean you do it faster by hand?


If the code is in VB.NET, it's already in the right language...

SCNR

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #12
Hi Herfried,

If the code is in VB.NET, it's already in the right language...


Thank you for clearing this for me, I did not understand what your meaning
was whit that text.

:-))

Cor
Nov 20 '05 #13
* "Cor Ligthert" <no**********@planet.nl> scripsit:
If the code is in VB.NET, it's already in the right language...


Thank you for clearing this for me, I did not understand what your meaning
was whit that text.


I just wrote it for the other people reading the thread ;-))).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #14
hehe..

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
* "Cor Ligthert" <no**********@planet.nl> scripsit:
BTW: I can't see any reason for using one of these converters...


Do you mean you do it faster by hand?


If the code is in VB.NET, it's already in the right language...

SCNR

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #15
VB and VB.NET to C# Converter Free Download
http:\\www.e-iceblue.com
Nov 20 '05 #16

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

Similar topics

81
by: julio | last post by:
Sorry but there is no another way, c# .net and mono are going to rip python, not because python is a bad lenguage, but because is to darn old and it refuses to innovate things, to fix wrong things,...
32
by: Fresh Air Rider | last post by:
Hi I understand that ASP.net 2.0 (Whidbey) is going to reduce coding by 70%. Surely this is going to de-skill or dumb down the developer's task and open up the task of web development to less...
4
by: nospam | last post by:
HtmlSelect has a method called OnServerChange that supposed to detect whether the control (select) has changed on a postback. This is not all that useful. It should be like the asp.net...
3
by: Rod | last post by:
In Dino Esposito's book, "Programming Microsoft ASP.NET", there is a chapter titled, "ASP.NET State Management". There is a section in there discussing session state sometimes going away. He...
3
by: needin4mation | last post by:
Is the framework going to change so that on sorting it will have some way of letting you sort two ways, asc or desc? Is the framework's paging going to change so that it does not bring back the...
41
by: Rob R. Ainscough | last post by:
I keep hearing persistant rumors (along with my own experience) that .NET is going to be abandon by Microsoft due to performance & security issues? I realize no one from Microsoft is likely to...
12
by: Jeff | last post by:
Looking for your highly subjective opinions (from those of you who have been working extensively with VS 2005). I have a client that needs/wants a complete rewrite of an existing application. I...
0
by: MikeY | last post by:
Hi everyone, I posted a question very early today, but maybe I wasn't articulate enough. Hopefully this will illicit a response I've created a windows form and a User Control. This is a...
1
by: Bigeloww | last post by:
Dollar is going to rise! Good news for US http://my.usatodays.us/money/myusatoday.html ---------------------------------- http://community.ihostasp.net ASP.NET Developer Community
22
by: Rickster66 | last post by:
As Instructed this is a new thread regarding my original post: "Select Only 10 Columns Going Back" I'm sorry for the late response. I've been gathering up information and carefully with as much...
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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.