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

.NET release code examples

C# 14: New features with code examples
C# 14: New features with code examples

Download the code example and see what's new in C# 14. From extension members to simple lambdas, learn how these features make your code cleaner and smarter.

.NET 9 code example to download with its key new features
.NET 9 code example to download with its key new features

Download an ASP.NET Core application in .NET 9 and try out its key new features such as HybridCache, OpenAPI support and new LINQ methods.

C# 13 - Code examples that include all the new features
C# 13 - Code examples that include all the new features

Download C# 13 code examples which includes all the new features so you can try them out for yourself and see what has changed from previous C# versions.

Data annotation .NET 8 additions in an Web API example
Data annotation .NET 8 additions in an Web API example

An ASP.NET Core Web API code example which includes the new data annotations for .NET 8 such as AllowedValues and Length.

TimeProvider example for mocking time and timer in xUnit
TimeProvider example for mocking time and timer in xUnit

A .NET 8 xUnit project which uses the TimeProvider and FakeTimeProvider class to mock time and a timer in unit tests.

Keyed services for ASP.NET Core dependency injection example
Keyed services for ASP.NET Core dependency injection example

Download the code example for injecting keyed services with dependency injection with an ASP.NET Core web app.