Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
❔ Skipping null values in .NET XML serializer - C#
C
C#
•
3y ago
•
1 reply
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
int
Am I still destined to write all 113
public bool ShouldSerializeMyNullableProp1,2,3,4,5...()
public bool ShouldSerializeMyNullableProp1,2,3,4,5...()
for this in the year of our Lord 2023
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
XML Deserialization Null Exception
C
C# / help
4y ago
❔ Change Null Values
C
C# / help
3y ago