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

Deserialize doesn't override the whole array #163

Open
erfan71 opened this issue Jun 29, 2020 · 1 comment
Open

Deserialize doesn't override the whole array #163

erfan71 opened this issue Jun 29, 2020 · 1 comment

Comments

@erfan71
Copy link

erfan71 commented Jun 29, 2020

Hi,

suppose that we have an Array of items what we initialize it in the constructor based on some default properties.
so as default, the array size is based on the default array size which is set in the constructor.

but we have changed the array to a smaller one and then we serialize it.
in deserialize time, the Array is still in the default size.
values of indexes from 0 until real saved array size are valid but the rest of it is like what we had set in the constructor.
so In other words, deserializer just overrides part of the array.

Am I doing something wrong? is there any config to set for this?
I can fix this by providing a custom fsObjectProcessor to trim the array OnAfterDeserialize function. is there any better way?

@GeorgeManeta
Copy link

Found the same issue.

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

No branches or pull requests

2 participants