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 support for deserializing fields in addition to properties #306

Closed
wants to merge 1 commit into from

Conversation

thisisthedave
Copy link

I made changes so that I can deserialize yaml to fields, which should address #117 "Serializing also fields and not just properties will make life easier". This is convenient for Unity objects with [SerializeField] members because Unity disallows using properties for these fields.

I'm not setup to test on platforms other than net46, so there may be issues on other platforms. I added a simple unit test. I'll attempt to execute the docker-based build/test soon when I have a chance to review how it works. I haven't done a pull request on a public repo before, so let me know if there is protocol I'm overlooking.

Thank you for publishing this library! It has been very useful to us.

@aaubry aaubry force-pushed the master branch 2 times, most recently from be468bf to 145477a Compare May 16, 2018 11:10
@ghost
Copy link

ghost commented Jun 7, 2018

@aaubry, could this be considered for the next version of YamlDotNet?

@aaubry
Copy link
Owner

aaubry commented Mar 7, 2019

Apparently this PR got lost somehow and in the meantime serialization of fields was independently added to release 5.4.0. Can this be closed, or is there a feature here that is not provided by the current implementation ?

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.

None yet

2 participants