Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2026

dotnet

A collection of 48 posts

Protect yourself when deserializing - System.Text.Json
dotnet

Protect yourself when deserializing - System.Text.Json

When dealing with deserialization of JSON, it's always a good idea to validate that it in fact deserialized correctly. But, how do you do that using System.Text.Json?

4 years ago November 10th, 2022 4 min read
Testing your dotnet applications - Boilerplate
dotnet

Testing your dotnet applications - Boilerplate

First post in a series that will show you different ways of how to test your ASP.NET/Dotnet Core applications. This post shows a simple integration test for an API endpoint

4 years ago October 19th, 2022 3 min read
Enumeration class in C# using records
jos.enumeration

Enumeration class in C# using records

Let's see if we can optimize the Enumeration class provided by Microsoft in "eShopOnContainers"...

4 years ago September 17th, 2022 7 min read
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
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
Subscribe via RSS
© Josef Ottosson 2026