r/learncsharp • • 23d ago

How do you learn C# in 2026?

Hi, as you've seen from the title I want to learn C# specifically in the Game Development and Desktop App department, the only problem is I don't know where to start from.

I've studied Python before as a kid so I'm pretty familiar with some programming theories and concepts, but I want to start creating (as in my opinion the best way to learn is by creating) but i can't really pinpoint a starting point.

I'd really appreciate if someone can help me!

26 Upvotes

20 comments sorted by

4

u/AnToMegA424 20d ago

This comment is in two parts: the first part consists of resources of all kinds, the second part is (a bit more than) 5 ideas I came up with, all to help you learning C#
This is mainly because in one part it exceeds the 10k Reddit character limit lol 😅
Here it is:



Part 1 - Resources


3

u/AnToMegA424 20d ago

Part 2 - Project ideas


    1. [VIDEO GAME] Col of Bu D: Collect, Build and Defend:
    • A game where you collect items to build various defenses to repel different kinds of enemies by shooting at them. I think this can be a useful project to learn and tinker with inheritance and interfaces (thus training your understanding of OOP as C# is an object-oriented programming language after all), and game states, or/and a wave system for the enemies
    • If you go further you can also make use of an inventory system, and why not use a state machine ? I personally envisioned a game in top-down view (could be isometric) that you would mainly play with your mouse, where everything would be placed on a grid, but it can be anything else you desire if you prefer something else,
    • You do you, do what you prefer first, you don't have to do everything nor even anything that is listed here at all, these are merely suggestions and an occasion for me to provide context for some rather important concepts without simply dumping information
  • 2. [VIDEO GAME] Don't fall:

    • You would have to finish levels by going from platform to platform whilst avoiding falling nto the Great Sky of Doomâ„¢
    • There could be moving platforms, ones that shrink and expand, others that disappear or teleport somewhere else, there could even be obstacles and/or enemies to try and make you fall, whether by covering a large portion of the landing zone and moving annoyingly or by shooting projectiles that push you
    • The player could also have a double jump or a dash ability to help them
    • I imagined a 3D 3rd person game but a 1st person one would work as well (you can even do both), such a project would be useful to learn how to make a player controller and to work on level design (why not create a level editor ?)
  • 3. [UTILITY SCRIPT] CSUtils:

    • C# is fairly practical already (the object being the base of nearly all data types, the string type that has many native features, the Math class of the System namespace, LinQ, etc...) so finding a thing to do to simplify things that hasn't already been done is arguibly more complicated than with C or C++, but it is possible nonetheless
    • It can be a wrapper for sorting algorithms, something, like a function, that facilitates/centralises access to some preexisting stuff by using enum members as arguments for example, a thing that gives the name, RGB, Hex and/or HSL values of a given colour, or one or multiple data types extensions, it can be anything that you want or think can be useful to do, even if only for yourself and even if only in one specific scenario as long as it interests you
  • 4. [VIDEO GAME] Doki Doki Dictature Club:

    • A visual novel game (that may or may not include some point and click elements at moments) set in the dictature club (hidden as Literature club to be allowed existence) of a renowned high school somewhere in Japan
    • There would be many, many debates and discussions, and there would be one highly intelligent and egocentric nerd that always shows off his knowledge by explaining and proving various things, most of which are related to programming, that nobody asked, though many years later right in the middle of the Great War of All he'd be on to invent an incredible machine that would require the world's greatest geniuses and inventors to decrypt it before it explodes in a giant series of atomic explosions
    • This would incentivise the manipulation of strings, text boxes, many diverse research on whatever topics you want to be in the game (I skewed it towards programming on purpose to stay on topic), choice prompts that can lead to different endings, thus making you need to learn how to manage that efficiently and so leading into good code practices, design patterns, and possibly C# conventions and why they exist, what's it's used for, what other conventions are there, and how you would do it yourself and why if you had to choose and create one
  • 5. [OTHER] This text is bold:

    • Basically anything else that comes to mind, whether it be a calculator, a programmatic implementation of a mathematical object (such as a vector, a spline or a quaternion for example), sending and receiving HTTP requests, connecting to and manipulating a SQL database, generating different types of noise, recreating existing systems such as strings, binary trees or hash maps, or anything else really, there is no limit
    • 8 things commonly done for training and learning purposes from what I've seen online thus far are :

      • A. Reversing a string
      • B Converting a string to uppercase or lowercase (or any other case for that matter)
      • C. Checking if a number is even or odd
      • D. Finding the number of vowels in a given string (can also be done for consonnants, accents, any arbitrary character, and any character that is unique/not repeating)
      • E. A program to print prime numbers from 1 to N (or within a given range)
      • F. Another one to generate a Fibonacci sequence
      • G. Another program to find the GCD of two integer numbers (or one to check if they're both divisible and 3 and 5)
      • H. Converting a decimal number to binary and vice-versa (can also be done for hexadecimal)

2

u/NorthSeal_ 20d ago

Thanks a lot, though this was a bit overwhelming to read 😅

1

u/AnToMegA424 20d ago

With pleasure

Yeah I understand, I may have gone overboard here lol 😅

4

u/jyscao 23d ago

I want to learn C# specifically in the Game Development

Unity and/or Godot then, no?

1

u/SloightlyOnTheHuh 23d ago

Download visual studio community edition. Use a simple course like solo learn or w3school to familiarise yourself with syntax. Ask an AI to suggest very simple console puzzles that you might solve. Solve puzzles. Move to more complex things as you get better. There are some very nice simple tutorials on mooict.com that I recommend to my students to get you making something fast.

2

u/Pappkarton 23d ago

Yes, avoid Visual Studio Code, and go with Visual Studio (two vastly different products). It may be more confusing and seemingly overloaded with features in the beginning, but it is more comfortable to use when you learn what does what and you won't have to worry about plugins at all.

1

u/LoneStarDev 23d ago

This makes me laugh (in a good way) because when I first started like him VS was insane to look at…

Now I use both but when working with agents, VS Code is the clear winner.

But a novice should start with VS in my opinion also.

1

u/NorthSeal_ 23d ago

But why exactly though? What's the difference between the two?

2

u/DevToDad 23d ago

Standard VS has years of development behind it with heavy .Net integration and multiple platform support.

VS Code is newer and much much more lean. It starts from a lower level and allows devs to build up its features selectively with add ons.

VS does more out of the box for new devs which is why i made my comment.

-1

u/NorthSeal_ 23d ago

I see now, thank you very much!

2

u/low_contrast_black 23d ago

VS Code is an awesome Swiss Army knife. I use it for pretty much everything not C/C++/C#. VS is much more purpose-built. It does technically support things other than C variants, but particularly for C#, it shines as an IDE. VS Code certainly works with C variants, it’s just klunkier.

But VS Code is great because if you want to support a new language, query a database, interact with a message queue, or anything else, just get the plugin.

-1

u/NorthSeal_ 23d ago

Thanks a lot!

2

u/Crunch-mat 19d ago

For game development you will also need Unity and that is an whole new ballgame. To learn C# specifically, look at Microsoft Learn as there are pages of tutorials on there C# docs - get started, tutorials, reference. - A tour of C# | Microsoft Learn

As you progress through there and develop your skills there are also tutorials on game development along with Unity and C#.

2

u/_commenter 23d ago edited 23d ago

I see alot of people are recommending VS... but jet brains rider is good too ;-)

so this may seem dumb but here is what I would do. I would come up with a tool or app I want to build. Flesh out the spec with AI and then ask AI to make course/book on how to build the spec in c# end the prompt with "the focus should be on teaching programming idioms and language features of C#".

then do the tutorial it builds... when things don't work or you get stuck, ask AI. (or you can ask here too)

1

u/UsePlentyOfLube 17d ago

I started by getting chatGPT/Codex to help me recreate Minesweeper. I instructed it to give me pseudocode, and only provide code snippets if I explicitly asked for them.

0

u/Alternative_Guava856 23d ago

I was already familiar with godot and gdscript so the switch was fairly straight forward. Also switched from vs code to jetbrains rider and never looked back

0

u/Available_Safe1818 19d ago

If you've learned Python, then you should be able to be an adult and google for C# resources.