C#C
C#3y ago
Kein

❔ Skipping null values in .NET XML serializer

I have data class with 113 properties.
I want to skip serializing null value, including Nullable value types like int
Am I still destined to write all 113 public bool ShouldSerializeMyNullableProp1,2,3,4,5...() for this in the year of our Lord 2023?
Was this page helpful?