Hi,
What's the best/ quickest way/ approach to learn C# programming for a C++ programmer?
Thanks
Hi,
What's the best/ quickest way/ approach to learn C# programming for a C++ programmer?
Thanks
Read a book or two and start coding. For book suggestions please see this question: http://stackoverflow.com/questions/477748/what-are-the-best-c-net-books/477751#477751
I also came from C++ when I first started C#. I thought it was a very easy step to take, because the language only got simpler to use.
I did follow a couple of courses, which my employer provided me but I didn't really think they added a lot of value.
Getting started with a small project, just to get the syntax under control has been the best way to learn for me. Live and learn! ;)
Read a book and/or watch some screencasts.
Screencasts I'd recommend are:
If you come from C++, you should have much trouble with C#, and you can most likely gloss over much of the syntax, and really get into the framework.
I learnt C, C#, ruby, Java and other languages from actually doing something useful. By picking the smallest project I could find and then just hacking at it. For me it was a really badly coded data acquisition program in VB6 to display a signal from a device. It helps that the project your learning with is something that you think is cool, to overcome the disappointment of making all the noob mistakes you will make. Books are good and online material is good but a solid weekend of intensive hacking has, in my option, no substitute. If you know C++ you know how to program, it's just about learning the syntax and idioms.
I agree w/ markmagnus -- learn by doing something simple but useful. Learning C# is an ongoing endeavor -- there's always something more that can be learned. Start with the basics. Learn & understand OO principles. Keep learning and build upon that.
Also, you might want to download Visual C# Express (it's free) if you haven't already done so. http://www.microsoft.com/exPress/download/
I started out with php, before going into c#. With the Joe Stagners asp.net vb & c# tutorials, I got up to speed just within weeks.
I'd recommend his videos, even though they're mostly about asp.net development.
for a c++ programmer, it only takes about a couple of days to a week to get up and running if you're not doing winforms/wpf. The threading model takes a bit of work to used to, but other than that, the syntax is very similar. The key is learning what the framework has to offer, otherwise you're just writing memory managed C++ style code. I would advise finding a project that is already written in C# that could use some work. I got started on Mediaportal. I picked a small area where my current knowledge overlapped (remote controls) with what I wanted to do and got started
I learned C# with this free ebook that Charles Petzold has written: What the C or C++ Programmer Needs to Know About C# and the .NET Framework.