YamlDotNet icon indicating copy to clipboard operation
YamlDotNet copied to clipboard

Add support for deserializing fields in addition to properties

Open thisisthedave opened this issue 7 years ago • 2 comments
trafficstars

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.

thisisthedave avatar Mar 16 '18 19:03 thisisthedave

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

ghost avatar Jun 07 '18 08:06 ghost

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 ?

aaubry avatar Mar 07 '19 00:03 aaubry