-
Notifications
You must be signed in to change notification settings - Fork 287
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
Make serializer work nicely with autoproperties #864
Comments
Some notes:
|
Oh also on the property? Thats nice. Can make it quite robust then by just checking if theres a attribute on both sides. EDIT: updated the example on this. |
Not the property itself, but its internal getter and setter methods get one. Still, could be useful enough for some sort of verification. |
Summary
Currently we try to avoid using auto properties because when serializing a instance the serializer will use the name of the backing fields which have a ugly name like
<Foo>k__BackingField
.Consider changing the serializers to understand the relationship between the backing fields and the properties to allow them to handle these in a nicer way
Analysis
Simple example of getting the backingfield or the autoproperty. No idea if this is stable enough, needs more research.
The text was updated successfully, but these errors were encountered: