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

Move from VB.NET to C#

Well, after many years of VB/VB.NET programming, I have decided to make the
switch to C#. No real reason why... just want to learn C#. Anyone
recommend any specific sites, tutorials, etc. to aid in this transition?

Dec 8 '06 #1
5 1425
The best teacher is your own VB.Net code. Fire up Roeder's Reflector, load
one of your class libraries or executables, and decompile it into C# and play
/ learn from the results. After all, you wrote it, right?
Cheers,
Peter

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


"msnews.microsoft.com" wrote:
Well, after many years of VB/VB.NET programming, I have decided to make the
switch to C#. No real reason why... just want to learn C#. Anyone
recommend any specific sites, tutorials, etc. to aid in this transition?

Dec 8 '06 #2
Thanks a lot. I wasn't aware of Roeder's Reflector. What a great tool.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:38**********************************@microsof t.com...
The best teacher is your own VB.Net code. Fire up Roeder's Reflector, load
one of your class libraries or executables, and decompile it into C# and
play
/ learn from the results. After all, you wrote it, right?
Cheers,
Peter

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


"msnews.microsoft.com" wrote:
>Well, after many years of VB/VB.NET programming, I have decided to make
the
switch to C#. No real reason why... just want to learn C#. Anyone
recommend any specific sites, tutorials, etc. to aid in this transition?

Dec 8 '06 #3
A brief VB - C# conversion handbook:
"C# & VB.NET Conversion" - O'Reilly Press

Check out some of the VB to C# converters:
Ours: Instant C#
Competitors: you can find them on google
(online tool) http://www.carlosag.net/Tools/CodeTr...r/Default.aspx
(online tool)
http://www.developerfusion.co.uk/uti...btocsharp.aspx
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
Instant Python: VB to Python converter
"msnews.microsoft.com" wrote:
Well, after many years of VB/VB.NET programming, I have decided to make the
switch to C#. No real reason why... just want to learn C#. Anyone
recommend any specific sites, tutorials, etc. to aid in this transition?

Dec 9 '06 #4
While you'll certainly learn from Reflector, it will not produce the most
obvious or clear C# translation.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
Instant Python: VB to Python converter
"Peter Bromberg [C# MVP]" wrote:
The best teacher is your own VB.Net code. Fire up Roeder's Reflector, load
one of your class libraries or executables, and decompile it into C# and play
/ learn from the results. After all, you wrote it, right?
Cheers,
Peter

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


"msnews.microsoft.com" wrote:
Well, after many years of VB/VB.NET programming, I have decided to make the
switch to C#. No real reason why... just want to learn C#. Anyone
recommend any specific sites, tutorials, etc. to aid in this transition?
Dec 9 '06 #5
Hi,

If you are a clean VB.Net writter, than I certainly would not take that as
example.

Beside the code is there a slight kind of different writting style
difference between avarage C# programmer and the avarage VB.Net programmers.
It starts with the fact that the inbuild Sub Main from VB.Net is not in C#
and that there are less settings in your project properties as in VB.Net so
you have to set by instance more using (imports).

C# hide just less than VB.Net. As well you will be angry when there are
things you cannot do like declare variables/objects in a methode in C# which
is often done in VB.Net without instancing them (C# is very strict in the
ECMA rules). For the rest just start this are fine pages to use by doing
that. At the moment I see not much differences while I am writting in one
of those languages.

ECMA rules
http://www.jaggersoft.com/csharp_standard/toc.htm

literals you surely need them
http://msdn.microsoft.com/library/en...spec_2_4_4.asp

Code C# and VB
http://www.harding.edu/USER/fmccown/...omparison.html

Language compare
http://msdn.microsoft.com/library/en...quivalents.asp

Something about C# written by a C# adept
http://www.pobox.com/~skeet/csharp/faq/#vb.or.csharp

Cor
<msnews.microsoft.comschreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
Well, after many years of VB/VB.NET programming, I have decided to make
the switch to C#. No real reason why... just want to learn C#. Anyone
recommend any specific sites, tutorials, etc. to aid in this transition?

Dec 9 '06 #6

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

Similar topics

1
by: bmgz | last post by:
I am have made a simple script that moves all desktop clutter (ie files that are not *.lnk) to a specified folder eg. c:\myhome\mydocs\desktopdebris\2003-12-16 ...
6
by: Daniel Bickett | last post by:
Hello, I'm writing an application in my pastime that moves files around to achieve various ends -- the specifics aren't particularly important. The shutil module was chosen as the means simply...
1
by: suhas | last post by:
Hi, I have an MDI app that allows user to create flowcharts. User can drag flowchart objects (squares, rectangles, elipses, etc) from the toolbar and put on a form. They should be able to move...
7
by: Tim Conner | last post by:
Hi, I am an ex-delphi programmer, and I having a real hard time with the following simple code (example ): Which is the equivalent to the following code ? var chars : PChar; sBack, s :...
1
by: Phil Endecott | last post by:
Dear Postgresql experts, According to the documentation for MOVE, it returns the number of rows that it has moved over. It seems to me that this is true for MOVE FORWARD n, but not for MOVE...
1
by: Todd7 | last post by:
I am writing a python program to load a pdf file into an IEHtmlWindow which displays it through adobe acrobat reader 7. Depending on the buttons the user clicks, the program moves it to another...
1
by: kkizer | last post by:
I have a problem with this simple code below. Moving the files works perfectly, but once in a blue moon the file that it is trying to move dissapears before it can move it. and when this happens...
3
by: Eric | last post by:
When i run my query it transfer last 4 digits of account number from one table to another and its wrong. There are two tables one i use for parsing. Second thru query i use to move data from temp...
3
by: Arpan | last post by:
A Form has a FileUpload, 2 Buttons & a TextBox web server controls. Using the FileUpload control, I want to give users the provision to move & delete files that DO NOT exist in C:\Inetpub\wwwroot...
3
by: jaeden99 | last post by:
I was wandering if nyone has a script to move files older than x days old? i've seen several to delete, but I don't want to delete. I would like to create a backup of the files first verify with...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
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...

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.