forked from aaubry/YamlDotNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The .NET DefaultValue attribute is now respected
- Properties with the .NET component model DefaultValue and matching values will no longer be serialized unless EmitDefaults is on (previously only properties with null or zero were ignored). - Moved the default exclusion mechanism from DefaultExclusiveObjectGraphVisitor to the traversal strategy, since visitors have no access to property attributes (it seems more correct as well).
- Loading branch information
Showing
6 changed files
with
47 additions
and
38 deletions.
There are no files selected for viewing
29 changes: 0 additions & 29 deletions
29
YamlDotNet.RepresentationModel/Serialization/DefaultExclusiveObjectGraphVisitor.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters