Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2026

Josef Ottosson

113 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
c-sharp

Bonus - Builder Pattern with the implicit operator using c#

By using the implicit operator we can skip the Build method on our builders

4 years ago October 21st, 2022 1 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
c-sharp

C# - Tips and Tricks 02 - Named tuples

Use named tuples to improve the readability/usability of your code

4 years ago August 29th, 2022 1 min read
Subscribe via RSS
© Josef Ottosson 2026