Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2026

tips and tricks

A collection of 5 posts

tips and tricks

Don't reinvent the wheel - configuration

Avoid creating custom environment helpers - use the built-in functionality instead.

a year ago June 7th, 2025 2 min read
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.

2 years 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?

4 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

4 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

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