MaggyD
Explore posts from serversIdiomatic C# Data Objects with Immutable Collections?
Ok, so I have a JSON object that I want to deserialize into a class. Previously, we serialized this class with a property say: Padding is a nullable immutable struct propety. Now, I want to change that! I want Padding to never be nullable, however, if can deserialize a null by providing a default value. HOW do I do this?
24 replies