Learn Minimal APIs from start to finish. Perfect for beginners.

C# tutorials

C# basics tutorial: Learn variables, classes and lists
C# basics tutorial: Learn variables, classes and lists

Learn C# basics with this tutorial covering variables, conditionals, arrays, lists, loops, classes, structs, interfaces, enums and static classes.

C# ToString(), operators and indexers - Are you using these?
C# ToString(), operators and indexers - Are you using these?

Learn how to override ToString(), overload operators and use indexers in C# classes, featuring examples of addition and subtraction.

C# class types explained with examples
C# class types explained with examples

Learn the different C# class types with clear examples, common compiler errors, and explanations of abstract, sealed, static, partial, unsafe, and record classes.

Are C# 14's new features worth updating your app to .NET 10?
Are C# 14's new features worth updating your app to .NET 10?

Discover the new features in C# 14 - from extension members to the field keyword - and find out whether upgrading your app to .NET 10 is really worth it.

C# 13 - New features and how you can use them now!
C# 13 - New features and how you can use them now!

C# 13 has been launched as part of the .NET 9 release and we'll take a look at the new features and how you can start using them today.

C# partial classes explained with examples
C# partial classes explained with examples

Learn what partial classes are in C#, when to use them, the rules you need to follow, and real-world examples of splitting a class across multiple files.

C# try, catch and finally: When does each block run?
C# try, catch and finally: When does each block run?

Learn exactly when the try, catch and finally blocks execute in C#, including edge cases in console apps and ASP.NET Core when exceptions are thrown.

Collection expressions and the spread operator in C#
Collection expressions and the spread operator in C#

Learn how collection expressions and the spread operator work in C#, with examples of how to use them to simplify lists and arrays in .NET.

Primary constructors adds class parameters in C# 12
Primary constructors adds class parameters in C# 12

Primary constructors is a C# 12 feature that allows to add parameters to a class and includes dependency injection support.

SOLID principles in C# used in object-oriented design
SOLID principles in C# used in object-oriented design

SOLID principles in C#, looking at design principles and examples for using object-oriented design (OOD) in your software.