Migrating from VB.net to C #
I have been developing applications using VB.net for the past 5 years. Since I tried to learn Java before and it was very difficult for me that I was on VB.net. And for me, C # is more or less similar to Java.
Now I cannot get rid of him. I need to write some code in C #. Is there a way that I can quickly speed up things with C #. I would really appreciate it if you could let me know your thoughts and if there are good resources I can give it a try.
a source to share
First, don't panic. The syntax is a little different, but in my experience most of the people I have worked with those developing on VB.Net can get past this and get up quickly after a week or so.
The main thing to remember is that they are both .NET, and the .NET Framework and Class Library do all the work. This is not like Java, where you have to learn a whole bunch of libraries. In C #, System.Text.StringBuilder is the same System.Text.StringBuilder that you would use in VB. The learning curve really isn't that bad if you keep this fact in mind.
Also, if you are using the MSDN library, each of these languages has examples in all languages, so you can find many differences with just examples.
a source to share
If you've been doing VB.NET for a long time, then the basic OOP concepts in this language and your experience with the .NET Framework put you in a great position to quickly learn C #. This means that all you really need to learn is the new syntax, and the best way to do this is to practice.
a source to share
I find language translators helpful:
http://www.developerfusion.com/tools/convert/vb-to-csharp/
I am working on a presentation and want to include VB.NET and C # code. If I don't know how to translate something from C # to VB.NET, I dump the code into translator and I find out.
I re-examined the VB.NET material that I have since forgotten. I am sure it will work the other way around.
a source to share
You can try http://converter.telerik.com/ much better than DeveloperFusion's conversion engine.
a source to share
I think the best way is probably to buy the book "Learning C #" ... why? Because it's a structured approach.
You will be flying through the book because you already understand programming concepts such as data types, loops, etc.
I find the Wrox books are great for these topics:
Depending on how serious you are, you can also purchase the "Professional" edition from Wrox for the more complex parts of C #.
I prefer the book's variant because its route is via langauage ... the only way would be to keep researching on google / msdn to see how to do things in C # ... which can be annoying and tedious.
As others have said, once you understand C # well, you can reopen your old VB.NET projects and actually convert them to C # easily.
NTN
a source to share
In fact, if you've been doing VB.NET for the last couple of years, the transition shouldn't be as hard as you are, since the language is very similar. You just need to look at the tons of online C # to VB.NET code translators available for proof. Well, a few years ago when I was porting VB.NET code to C # the main things it choked out were arrays as the syntax is quite different and case sensitive as VB is not case sensitive. There may be more problems nowadays, though all the additions they keep adding to C #.
a source to share