Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2026

Josef Ottosson

113 posts
How C# Records will change my life
c-sharp

How C# Records will change my life

The new record type will be a huge timesaver when working with immutable objects in C#

6 years ago July 19th, 2020 4 min read
httpclient

HttpClient - Error handling, a test driven approach

Shows how to handle a bunch of different tricky scenarios when dealing with HttpClient. Error handling, deserialization, timeouts...I've got you covered

6 years ago April 4th, 2020 15 min read
enum

Beware of Enum.TryParse

Enum.TryParse sometimes doesn't do what you think

6 years ago March 15th, 2020 1 min read
swagger

Swagger - Tips and Tricks - Part 2

Shows how to hide specific properties in the Swagger UI

6 years ago March 6th, 2020 1 min read
c-sharp

C# - Sealed and internal - how to use in unit test?

Shows how to create a new instance of a sealed class without any public constructors. Reflection to the rescue!

6 years ago February 20th, 2020 2 min read
Subscribe via RSS
© Josef Ottosson 2026