Welcome to the C# Quickstarts. These start with interactive lessons that you can run in your browser.
The first lessons explain C# concepts using small snippets of code. You'll learn the basics of C# syntax and how to work with data types like strings, numbers, and booleans. It's all interactive, and you'll be writing code within minutes. These first lessons assume no prior knowledge of programming or the C# language.
All the quickstarts following the Hello World lesson are available using the online browser experience or on your own development environment. At the end of each lesson, you decide if you want to continue with the next quickstart online or on your own machine. There are links to help you setup your environment and continue with the next quickstart on your machine.
In the Hello world quickstart, you'll create the most basic
C# program. You'll explore the
string type and how to work with text.
In the Numbers in C# quickstart, 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 quickstart is also available to run locally on your machine.
This quickstart assumes that you have finished the Hello world tutorial.
The Branches and loops quickstart 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. This quickstart is also available to run locally on your machine.
The interpolated strings quickstart shows you how to insert an expression into a larger string. You'll learn how to define an interpolated expression, how to create a result string from an interpolated string that has one or more interpolated expressions, and how to control the formatting, column width, and alignment of expressions included in the result string.
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 quickstart is also available to run locally on your machine.
This beginning quickstart assumes that you have finished the quickstarts listed above.
This final quickstart 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.