The best way to learn C#

Furgel Reid 51 Reputation points
2021-05-14T18:12:47.01+00:00

The best way to learn C#

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,458 questions
{count} vote

Accepted answer
  1. Karen Payne MVP 35,286 Reputation points
    2021-05-15T02:33:55.247+00:00

    Where many newcomers go wrong is taking on too much and not learning the basics. It can be frustrating to start with the basics but this gives you a solid foundation for moving forward.

    Dependent on being your first programming language or not.

    Start here and run through the documentation. Explore the courses listed here.

    When learning to code, do not use windows forms or web application, instead learn the basics using either or unit test or console projects. Why unit test and/or console projects? Because this allows one to focus on one topic e.g. learning to work with statements, learning to work with data (e.g. SQL-Server, Oracle, MS-Access etc). Also another benefit is if something breaks inside an application with many moving parts one must debug code in two different places while having unit test can indicate if there is failure in backend code or frontend code for instance.

    Use Visual Studio 2019 rather than older versions and start with .NET Framework 4.8 rather than .NET Core Framework. If you like to know why ask me.

    Learn how to debug, many developers rely on using console write line or debug write line while there are much better ways using Visual Studio’s debugger.

    Once the basics are understood, now is the time to create an application to learn how to put all the pieces together. Before writing any code for the application, lay out a design on paper, in a document or other tool. Working with data? Do not write SQL in the application, write SQL for instance in SSMS (SQL-Server Management Studio) and when it works write code and test using one or more unit test.

    4 people found this answer helpful.
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Furgel Reid 51 Reputation points
    2021-05-19T22:32:21.49+00:00

    Hey aamazing, I will indeed do that thanks for your response

    1 person found this answer helpful.
    0 comments No comments

  2. mohammad mehdi alipour 31 Reputation points
    2022-01-13T10:48:23.31+00:00

    hi

    "best way to learn c# " was my question too

    the best way to learn c# is about your hobbits

    what is that mean ?

    if you like learning with LEVELS and get some awards :
    https://learn.microsoft.com/en-us/learn/browse/

    if you like learning with videos :

    https://www.youtube.com/channel/UCvtT19MZW8dq5Wwfu6B0oxw

    don't forget installing vs 2022

    and .net 4 "the last version" :)

    your friend mohammad mehdi alipour :)

    0 comments No comments

  3. Anonymous
    2022-04-19T06:01:28.353+00:00

    The Microsoft Learn is a solid base and is free.

    0 comments No comments

  4. Raymond Gilbers 176 Reputation points
    2022-07-14T21:56:15.67+00:00

    I just started at the pluralsight site but parallel i'm using also msn learning cause there are loads of good tutors. Next I have to say the learning to debug is a huge advantage there are many possibilities with the debugger within VS2022 which helps a lot finding errors.

    And regarding "The best way to learn C#" this depends all on the person some people learn by watching videos some people like to write all down what a teacher says some grasp the idea of a subject and start asking questions. There is no best way in learning anything it depends on the person how this person learns the best way. this is just MHO

    0 comments No comments