I have an excellent book for learning OOP using Java but my goal is to learn C#. How can I use that book to learn C# instead of Java? How can I know the equivalent of Java code in C#?
Is there a website for example that helps me in this?
|
I have an excellent book for learning OOP using Java but my goal is to learn C#. How can I use that book to learn C# instead of Java? How can I know the equivalent of Java code in C#? Is there a website for example that helps me in this? |
|||||||||||
|
|
Don't. If you want to learn C#, learn C#. Once you know the language and have some familiarity with the BCL (Base Class Library) and how it works, that's the time to go to your OOP Java book and study the principles. The principles of OOP will of course apply to C#, but if you are trying to learn C#, don't focus on them, not through a Java lens, as the differences in the languages are huge (Lambda expressions don't exist in Java, generics work very differently, events don't exist in Java and more...). |
|||
|
|
|
One should keep in mind, that C# is no longer Java like language as it was with the first two releases. C# as it is today is much more than an OOP language. It has features of functional languages, LINQ, delegates, lambda expressions, etc. So, I would recommend mixing these two together. Try to get a good C# book instead. |
|||
|
|
|
Good place to start learning C# would be here: http://msdn.microsoft.com/en-us/vcsharp/dd919145 If your goal really is to learn C#, using the book first would end up having you learn Java first instead. After you get use to C# basics, then go back to the book. |
|||
|
|
|
For the similarities between Java and C#, I suggest referring to this article. Otherwise, as others have already hinted, get a good C# book and learn the language directly. Although Java and C# are similar, the differences are quite important to be aware of. |
|||
|
If you have worked on any Java project during your graduation or after joining a corporate, you can try making a similar project in C#. I am a C# developer and I learn't C# by converting an email project that I had worked on during my graduation. C# and Java are actually quite similar, from an application developer's perspective and I used this to my advantage and so can you! Hope this helps! |
|||
|
|
|
I think you should separate them, that OOP book is just for OOP, don't try to learn some language things from that book, and find a another book to learn C#. by the way, I suggest you learn C# first. Since C# being a late-comer and avoid some shortcomings of Java, you will find your C#-Sample better than the Java-sample in the OOP book. more simpler |
|||
|
|