Status
Requested
Complexity
5/10
Description
Attributes which can be added to a field to determine whether it is stored by reference, value or both during the serialisation process.
Attributes to save field by reference, value or both
Re: Attributes to save field by reference, value or both
I actually came to the forum to request it ^^
Kinda surprise it doesn't have more votes
Kinda surprise it doesn't have more votes
Re: Attributes to save field by reference, value or both
I really wonder how do people solve this, since it is not implemented yet...:=/
Re: Attributes to save field by reference, value or both
Hi there,
To do this you would create an ES3Type (see https://docs.moodkie.com/easy-save-3/es ... g-es3types), and then modify the writer.WriteProperty calls in ES3Type to include the memberReferenceMode parameter.
I.e. instead of this:
Code: Select all
writer.WritePropertyByRef("dict", instance.dict);
Code: Select all
writer.WriteProperty("dict", instance.dict, ES3.ReferenceMode.ByRefAndValue);
All the best,
Joel