Move from VB.NET to C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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
 
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/CodeTranslator/Default.aspx
(online tool)
http://www.developerfusion.co.uk/utilities/convertvbtocsharp.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
 
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
 
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-us/csspec/html/vclrfcsharpspec_2_4_4.asp

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

Language compare
http://msdn.microsoft.com/library/en-us/vsintro7/html/vxgrfLanguageEquivalents.asp

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

Cor
 
Back
Top