Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2026

Josef Ottosson

113 posts
dotnet

C# - Tips and Tricks 01 - Covariant return types

Use covariant returns to override the return types of properties and/or methods

4 years ago August 27th, 2022 2 min read
My take on the Result class in C#
c-sharp

My take on the Result class in C#

Don't use exceptions for flow control, use a custom Result class instead!

4 years ago June 16th, 2022 7 min read
Using records when implementing the builder pattern in C#
c-sharp

Using records when implementing the builder pattern in C#

Here I'm showing some alternative ways of implementing the builder pattern by using regular classes, records and the new init keyword

4 years ago June 16th, 2022 5 min read
asp.net core

Model bind multiple sources to a single class in ASP.NET Core

How to model bind multiple sources to a single class

4 years ago April 28th, 2022 2 min read
postgres

Gotcha when using Postgres, NodaTime, Ef Core and Dapper

We had a really annoying bug regarding NodaTime and Dapper. Our integration tests worked but not when calling the API via Postman...

4 years ago March 23rd, 2022 2 min read
Subscribe via RSS
© Josef Ottosson 2026