Skip to content

Serialise specific properties only #718

Answered by EdwardCooke
lonix1 asked this question in Q&A
Discussion options

You must be logged in to vote

To restate what you're looking for, to make sure I understand clearly, is to make it so by default nothing would get serialized unless there was an attribute on the property? The opposite of the way it currently is. Is that right?

I believe the only way we can exclude things is by decorating the properties you want to exclude with the YamlIgnore attribute.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lonix1
Comment options

Answer selected by lonix1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants