C# Tutorials

Learn C# step by step — a complete, ordered C# tutorial course.

Your C# learning path

Free, in order. Start at the top and work down.

Learn C#, one tutorial at a time.

Drop your email — we’ll send a fresh C# tutorial each week. No spam.

  1. 4 C# Introduction Tutorial Welcome to C# Tutorial. C# is developed in 2000 by Microsoft and currently is one of the most…
  2. 14 C# IDE Tutorial What is IDE in C#? Why use C# IDE? xxx Best C# IDEs 1. xxx Platform First Released…
  3. 44 C# Quick Example Tutorial In this section we will compile and run a simple C# program just to see how this process…
  4. 64 C# Syntax Tutorial C# has many nitty gritty details and throughout this tutorial we will explain them one by one. But…
  5. 84 C# Variables Tutorial We use variables in programs when we want to store data temporarily while the program is running. If…
  6. 94 C# Literals Tutorial What is Literals in C#? 1. C# Boolean Literals Example: C# Boolean Literals 2. C# Integer Literals Example:…
  7. 114 C# data types Tutorial Before reading this section, we're expecting you to be familiar with variables. If don't then please make sure…
  8. 134 C# var keyword Tutorial In this section we're assuming you're already familiar with the data types in C#. In C# we have…
  9. 154 C# const Tutorial Sometimes for whatever reason, we might want to have a variable to be initialized and never be allowed…
  10. 174 C# Console WriteLine() and Write()Tutorial So far we've used the WriteLine() method in a couple of examples in the previous sections. This method…
  11. 194 C# Escape Characters Tutorial There are a few characters in computers that don't have a printable symbol. This means they are non-printable.…
  12. 214 C# comments Tutorial Almost any enterprise program is written with over thousands of lines of code! Reading all these codes just…
  13. 234 C# operators Tutorial Symbols like *, /, +, == etc. in C# programming are called operators and allow developers to do…
  14. 254 C# Arithmetic Operators Tutorial In this section we're assuming you already read the C# operators section. Those symbols that are used to…
  15. 274 Precedence of Operators in C# Tutorial In this section we're assuming you're familiar with C# arithmetic operators. Let's start with a simple expression: `int…
  16. 294 C# assignment operators Tutorial In this section we're assuming you're familiar with C# operators in general and C# variables. The assignment operators…
  17. 314 Comparison Operators in C# Tutorial Before reading this section, we're assuming that you already read the C# operator section. We do use comparison…
  18. 324 C# logical operators Tutorial What is Logical Operators in C#? List of Logical operators in C# C# AND `&&` Operator: C# AND…
  19. 354 C# type casting Tutorial Casting is about storing a value on type into a variable of different type. For example let's say…
  20. 374 C# if else Tutorial We run tasks based on conditions. For example let's say we want to go out for a walk;…
  21. 394 C# switch Tutorial There's a value in a variable and you don't know what that value is but you have multiple…
  22. 414 C# while loop Tutorial In programming there are times that we want to iterate through a set of instructions multiple times or…