Learning
Learn C# from zero: a simple 8-week plan
Cet article est en anglais seulement pour le moment.
C# is a good first programming language. It's used for business apps, websites, games, and Windows and phone apps, and everything you need to start is free. With about an hour a day, this plan takes you from your first line of code to small programs of your own in eight weeks.
What you need
- A computer with Windows, macOS or Linux.
- The free .NET SDK. The newest version is .NET 11, released in November 2026. .NET 10 is the long-term support version. Both are supported until November 2028, so either one is fine for learning.
- A code editor: Visual Studio Code with the C# Dev Kit, or Visual Studio Community on Windows. Both are free for learners.
Not ready to install anything? Microsoft's C# tutorials can run in your browser with GitHub Codespaces and a free GitHub account.
Your first program
Since .NET 10, a C# program can be a single file. Make a file called hello.cs with this one line:
Console.WriteLine("Hello! This is my first C# program.");
Open a terminal in the same folder and run:
dotnet run hello.cs
Your message appears. That's a real C# program.
The 8-week plan
About an hour a day. Each week ends with a small project you build yourself.
| Week | Learn | Build |
|---|---|---|
| 1 | Variables, numbers and text, and reading what the user types | A tip calculator |
| 2 | Decisions with if and switch, and loops | A number-guessing game |
| 3 | Arrays, lists and foreach | A grade book that shows the average, highest and lowest mark |
| 4 | Methods, and finding bugs with the debugger | A unit converter with a menu |
| 5 | Classes and objects | A small library: books, members and loans |
| 6 | Records, enums, interfaces and handling errors | A bank account that refuses to go below zero |
| 7 | Saving to files and reading JSON | A to-do list that remembers your tasks |
| 8 | Git and GitHub, and a project of your own | Your choice: something you'd actually use |
Habits that make it stick
- Type the code yourself instead of copying it.
- Read the whole error message. It usually tells you the line and what's wrong.
- Use the debugger to go through your code one line at a time.
- Change a working example on purpose, and guess what will happen before you run it.
- Keep a short notes file of what you learned and the mistakes you fixed.
- When you ask for help, share your code and the exact error.
Free resources
- Microsoft Learn: the "Get started with C#" learning paths, six parts for complete beginners.
- The C# tutorials in Microsoft's .NET documentation, which you can run in your browser.
- Microsoft's "C# for Beginners" video series on YouTube.
Want a teacher?
Nojan teaches C# one-to-one, online on Zoom, with a working developer. Lessons are one hour for $45, and your first session is half price. After Programming 1, you can go on to object-oriented C#, advanced C# and .NET, and web apps with ASP.NET.
Sources
- Microsoft Learn: Releases and support for .NET
- Microsoft Learn: What's new in C# 15
- Microsoft Learn: File-based apps
- Microsoft Learn: Introduction to C# tutorials
- Microsoft Learn: Get started with C#, part 1
Prices and dates were checked in November 2026. They change, so check before you buy.