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

C# tutorials

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.

What are partial classes in C# and why do we use them?
What are partial classes in C# and why do we use them?

Find out what partial classes are in C#, examples of how to use them, the rules that we need to follow and why we use them.

When does the try, catch and finally code blocks run in C#?
When does the try, catch and finally code blocks run in C#?

We have a look at a console app and ASP.NET Core app to see if the try, catch and finally statements always run in C# when an exception is thrown.

Collection expressions brings the spread operator to C# 12
Collection expressions brings the spread operator to C# 12

Collection expressions (also known as collection literals) brings the spread operator to C# allowing for collection types to be joined together.

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.