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

Unable to serialize object with property without getter #518

Closed
hc4 opened this issue Aug 14, 2020 · 2 comments
Closed

Unable to serialize object with property without getter #518

hc4 opened this issue Aug 14, 2020 · 2 comments
Labels

Comments

@hc4
Copy link

hc4 commented Aug 14, 2020

If object has property without getter Serializer throws NullReferenceException.

It happens because GetPublicProperties doesn't check if property has getter.

p => !p.GetMethod.IsStatic && p.GetMethod.IsPublic);

@hc4
Copy link
Author

hc4 commented Aug 14, 2020

I'm using latest version 8.1.2 from nuget

@EdwardCooke
Copy link
Collaborator

This was resolved in version 12.
I'm closing this issue, if you still see problems let me know and I'll get them resolved.

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

No branches or pull requests

3 participants