Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2026

Josef Ottosson

114 posts
asp.net core

Don't let ASP.NET Core set empty strings to null when posting forms

This post highlights how ASP.NET Core converts empty strings to null in form submissions and demonstrates how to prevent this behavior.

2 years ago November 28th, 2024 2 min read
dotnet

Keeping your nuget packages in check

It's important to keep your NuGet dependencies up to date. In this post, I'll share some tips and tricks for managing package updates effectively.

2 years ago October 4th, 2024 4 min read
c-sharp

Use the implicit operator to reduce noise in your code

This post demonstrates how to simplify cache key handling in C# by using typed objects and the implicit conversion operator, allowing automatic string conversion without manual method calls.

2 years ago September 18th, 2024 1 min read
dotnet

UnsafeAccessor is my new best friend

How can you access a private field using both Reflection and the new UnsafeAccessor approach introduced in .NET 8, and what are the benefits in terms of performance and code reduction?

2 years ago July 11th, 2024 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
Subscribe via RSS
© Josef Ottosson 2026