12 Replies - 2381 Views - Last Post: 27 May 2015 - 04:16 AM Rate Topic: -----

#1 RustyAMcM   User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 192
  • Joined: 21-January 15

Moving to C# from VB.net

Posted 26 May 2015 - 11:44 AM

I have been coding in vb.net for about 4 years now having migrated from vb6 now I have been informed that I need to get my a$$ to C# to keep up with the current trend.

Now here is my question I tend to learn better by doing so that being said what would be the best and quickest way to get a good handle on C#?
Is This A Good Question/Topic? 0
  • +

Replies To: Moving to C# from VB.net

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15882
  • View blog
  • Posts: 63,559
  • Joined: 12-June 08

Re: Moving to C# from VB.net

Posted 26 May 2015 - 11:45 AM

Take an existing project and convert it.
Was This Post Helpful? 2
  • +
  • -

#3 rgfirefly24   User is offline

  • D.I.C Lover
  • member icon


Reputation: 473
  • View blog
  • Posts: 2,221
  • Joined: 07-April 08

Re: Moving to C# from VB.net

Posted 26 May 2015 - 11:48 AM

I would say since you've been working with VB.NET for many years, you'll have a good grasp on the syntax and framework components. I would say start looking through MSDN Documentation, but otherwise as long as you remember that C# uses curly braces and semi-colons you should do fine just jumping right in. You may grab a few teach yourself books and work through those, or look at the pinned project thread and see if you can create them in C#.
Was This Post Helpful? 2
  • +
  • -

#4 Martyr2   User is offline

  • Programming Theoretician
  • member icon

Reputation: 5554
  • View blog
  • Posts: 14,560
  • Joined: 18-April 07

Re: Moving to C# from VB.net

Posted 26 May 2015 - 11:52 AM

I have to agree with the previous two posters. C# is really easy to get started with if you have been doing VB.NET for a number of years. There are a few subtle differences in syntax but the logic is pretty similar. Both of their advice is valid and I recommend doing both. Take a current VB.NET project, convert it using MSDN documentation to guide you as to what may need changing. This will teach you fast.

:)
Was This Post Helpful? 1
  • +
  • -

#5 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15882
  • View blog
  • Posts: 63,559
  • Joined: 12-June 08

Re: Moving to C# from VB.net

Posted 26 May 2015 - 11:54 AM

.. and more or less this:

http://www.harding.e...comparison.html
Was This Post Helpful? 2
  • +
  • -

#6 RustyAMcM   User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 192
  • Joined: 21-January 15

Re: Moving to C# from VB.net

Posted 26 May 2015 - 11:59 AM

Excellent information Thanks you modi123_1 also thanks for the quick responses guys I will get started converting a working project and see what happens.

Again Thanks for the quick and very informative answers
Was This Post Helpful? 0
  • +
  • -

#7 RustyAMcM   User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 192
  • Joined: 21-January 15

Re: Moving to C# from VB.net

Posted 26 May 2015 - 12:05 PM

Another question about this how should I go if I am looking to be multi OS compliant meaning I would want to be able to develop for other OS's other than Windows.
Was This Post Helpful? 0
  • +
  • -

#8 Curtis Rutland   User is offline

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 5106
  • View blog
  • Posts: 9,283
  • Joined: 08-June 10

Re: Moving to C# from VB.net

Posted 26 May 2015 - 12:14 PM

That's actually called "cross platform". If you're looking to do so and stick with C# or VB.NET, you should check out the Mono project. Otherwise, ditch .NET and get with something that's designed to be cross-platform from the start, as .NET was designed for a Windows environment.
Was This Post Helpful? 1
  • +
  • -

#9 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15882
  • View blog
  • Posts: 63,559
  • Joined: 12-June 08

Re: Moving to C# from VB.net

Posted 26 May 2015 - 12:18 PM

.. or investigate Xamarin's plugins.
https://msdn.microso...=vs.140%29.aspx
Was This Post Helpful? 1
  • +
  • -

#10 rgfirefly24   User is offline

  • D.I.C Lover
  • member icon


Reputation: 473
  • View blog
  • Posts: 2,221
  • Joined: 07-April 08

Re: Moving to C# from VB.net

Posted 26 May 2015 - 12:27 PM

Also, Microsoft has put out .NET Core which is basically the ability to run .NET applications on Linux and Mac 64 bit systems.

.net core
Was This Post Helpful? 1
  • +
  • -

#11 RustyAMcM   User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 192
  • Joined: 21-January 15

Re: Moving to C# from VB.net

Posted 26 May 2015 - 12:50 PM

Curtis,

What "Other" languages would you suggest to be cross platform compliant
Was This Post Helpful? 0
  • +
  • -

#12 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1556
  • View blog
  • Posts: 4,930
  • Joined: 20-March 10

Re: Moving to C# from VB.net

Posted 26 May 2015 - 01:43 PM

Java and Python are two languages designed to be cross platform to name but two...
Was This Post Helpful? 0
  • +
  • -

#13 BBeck   User is offline

  • Here to help.
  • member icon


Reputation: 792
  • View blog
  • Posts: 1,886
  • Joined: 24-April 12

Re: Moving to C# from VB.net

Posted 27 May 2015 - 04:16 AM

I took C in college and had been doing VB back since VB6 and then into VB.Net. I never actually "learned" C#. I took a look at it and instantly understood it. I just started coding. It's mostly just a difference in syntax for .Net. Everything will be extremely familiar. If you know C, then the syntax will also be instantly understood.

I highly recommend RB Whitiker's book. I went through it as my "formal training" in C# after working in C# for a couple of years. Sure enough, he taught me a few things I had missed. It's called "the Player's Guide" and he teaches XNA game programming, but don't let that fool you. There's nothing in the book related to game programming. I'm not sure why he chose that title except maybe to make the book a bit more "approachable". It's just a pure C# book. I think it's a great book for anyone from a beginner to someone who's been doing C# for years but had no formal training in it and needs to learn the language more thoroughly. It gets into some fairly advanced stuff, but he presents it in a way that is understandable for even absolute beginners.

This post has been edited by BBeck: 27 May 2015 - 04:16 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1