Become familiar with the .NET development tools
The first step in running a tutorial on your machine is to set up a development environment. The .NET tutorial Hello World in 10 minutes has instructions for setting up your local development environment on Windows, Linux, or macOS.
Basic application development flow
You'll create applications using the
dotnet new command. This command
generates the files and assets necessary for your application. The introduction to C# tutorials all use the
console application type. Once you've got the basics, you can expand to other application types.
Pick your tutorial
You can start with any of the following tutorials:
In the Numbers in C# tutorial, you'll learn how computers store numbers and how to perform calculations with different numeric types. You'll learn the basics of rounding and how to perform mathematical calculations using C#.
This tutorial assumes that you have finished the Hello world lesson.
The Branches and loops tutorial teaches the basics of selecting different paths of code execution based on the values stored in variables. You'll learn the basics of control flow, which is the basis of how programs make decisions and choose different actions.
The List collection lesson gives you a tour of the List collection type that stores sequences of data. You'll learn how to add and remove items, search for items, and sort the lists. You'll explore different kinds of lists.
This tutorial assumes that you have finished the lessons listed above.
This final introduction to C# tutorial is only available to run on your machine, using your own local development environment and .NET Core. You'll build a console application and see the basic object-oriented features that are part of the C# language.