Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic support to populate pre-existing C# objects when deserializing #661

Closed
wants to merge 6 commits into from

Conversation

krisrok
Copy link

@krisrok krisrok commented Jan 4, 2022

Add IDeserializer.PopulateObject() APIs
Add currentValue parameter to INodeDeserializers and IValueDeserializers
Add checks to only create a new instance if currentValue is empty
Add ways to allow the user to configure population of pre-existing collections: DeserializerBuilder.WithCollectionPopulationOptions()

Note: Pre-existing collection items do not get populated. Pre-existing collections can be re-used though, see DeserializerBuilder.WithCollectionPopulationOptions()

Todo: Allow to populate pre-existing collection items. This needs some refactoring of the way the Array-, Collection- and DictionaryNodeDeserializer work.

#130

cp added 6 commits January 4, 2022 15:29
Add IDeserializer.PopulateObject() APIs
Add currentValue parameter to INodeDeserializers and IValueDeserializers
Add checks to only create a new instance if currentValue is empty
Add ways to allow the user to configure population of pre-existing collections: DeserializerBuilder.WithCollectionPopulationOptions()

Note: Pre-existing collection _items_ do _not_ get populated. Pre-existing collections can be re-used though, see DeserializerBuilder.WithCollectionPopulationOptions()

Todo: Allow to populate pre-existing collection items. This needs some refactoring of the way the Array-, Collection- and DictionaryNodeDeserializer work.
@aaubry aaubry mentioned this pull request Apr 29, 2022
@aaubry aaubry force-pushed the master branch 8 times, most recently from a0f8359 to 78b1ab3 Compare December 2, 2022 22:39
@EdwardCooke
Copy link
Collaborator

This PR is really old, with a lot of merge conflicts. I'm going to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants