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

[feature request] Possibility to serialize private fields #5

Closed
TMaddox opened this issue Aug 19, 2019 · 2 comments
Closed

[feature request] Possibility to serialize private fields #5

TMaddox opened this issue Aug 19, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@TMaddox
Copy link

TMaddox commented Aug 19, 2019

Is there a possibility to serialize private fields/properties?

If not, I would like to request this feature. How about serializing/deserializing the field/property if the [CborProperty] attribute is used, no matter the access modifier. It wouldn't make any sense to decorate a field with a [CborProperty] which shouldn't be serialized anyways.

@mcatanzariti mcatanzariti self-assigned this Aug 19, 2019
@mcatanzariti mcatanzariti added the enhancement New feature or request label Aug 19, 2019
@mcatanzariti
Copy link
Member

mcatanzariti commented Aug 25, 2019

@mcatanzariti
Copy link
Member

If you decorate a private/protected field/property with [CborProperty], it will be serialized/deserialized.

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

No branches or pull requests

2 participants