Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2026

c-sharp

A collection of 35 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
c-sharp

Using embedded files in dotnet core

Two different implementations for reading embedded resources in c-sharp

4 years ago March 6th, 2022 3 min read
Sorting large CSV files by multiple columns using C#
c-sharp

Sorting large CSV files by multiple columns using C#

How to sort csv files based on multiple columns in the most performant way

5 years ago October 17th, 2021 5 min read
Subscribe via RSS
© Josef Ottosson 2026