Josef Ottosson

Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2025

tips and tricks

A collection of 4 posts

dotnet

Act on a Task as soon as it's completed with Task.WhenEach

Task.WhenEach allows us to act on a collection of tasks as they finish.

a year ago June 17th, 2024 1 min read
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?

2 years ago November 10th, 2022 4 min read
c-sharp

C# - Tips and Tricks 02 - Named tuples

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

3 years ago August 29th, 2022 1 min read
dotnet

C# - Tips and Tricks 01 - Covariant return types

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

3 years ago August 27th, 2022 2 min read
Subscribe via RSS
© Josef Ottosson 2025