- Loading...
Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

Safety and simplicity with LINQ
Working with the result pattern - Part 2
In this post I show how to clean up unreadable Switch()-based result pattern code using LINQ query syntax, giving both readability and safety…

Replacing Exceptions-as-flow-control with the result pattern
Working with the result pattern - Part 1
In this post I discuss why you might want to use the result pattern, demonstrate it with a simple example and show a naïve, ugly, solution…

Working with the result pattern
In this series I provide a brief introduction to the result pattern, show how to use it, and how to use LINQ to reduce the boilerplate it introduces…

Preventing breaking changes in public APIs with PublicApiGenerator
In this post I show how you can use the PublicApiGenerator project to document your public API and build a snapshot unit test to prevent breaking changes…

Disambiguating types with the same name with extern alias
In this post I describe how to solve Error CS0433, where you have two types with the exact same name and namespace coming from two different packages…

Adding support for collection expressions to your own types
Behind the scenes of collection expressions - Part 5
In this final post of the series I show how to add support for collection expressions to your own types that don't support them automatically…

