Lessons
C# · Introductory
C# · Introductory. Ten lessons. Open-book quizzes. Lesson 1 free.
10 lessons · The Host · Lesson 1 free
Pass all ten lessons for the certificate. Sample · Claim

Lesson 1 · On the house
Hello C#
Top-level statements, Console.WriteLine, dotnet new console, and dotnet run.

Lesson 2
Variables and types
int, double, decimal, bool, char, string; var inference; const.

Lesson 3
Strings
Interpolation, verbatim and raw strings, common methods, and immutability.

Lesson 4
Control flow
if/else, switch statements and expressions, and the ternary operator.

Lesson 5
Loops
for, while, do-while, foreach, break and continue.

Lesson 6
Methods
Declaring methods, parameters, return types, overloads, and expression bodies.

Lesson 7
Arrays and List<T>
Fixed arrays, List<T> Add/Remove/Count, indexing, and ranges.

Lesson 8
Classes and objects
Fields, properties, constructors, methods, and new.

Lesson 9
Null and nullable types
Nullable reference types, int?, ?. and ?? operators, and null warnings.

Lesson 10
Exceptions
try/catch/finally, throw, exception filters, and using for disposal.
Sample certificate
Certificate of completion
Sign in to claim your certificate of completion.
Certificate
Finish all ten lessons, then sign in
Pass every lesson on this device (quizzes and checks). Then sign in or create an account to type your name and download the JPG.