I'm looking for a good way to save a list of details into Xamarin.Essentials.Preferences.
Basically something like
<Item>
<Name>Toast</Name>
<Weight>0.5oz</Weight>
<Quantity>4</Quantity>
</Item>
I thought of doing some xml serialization but I'm not sure that's the best approach.
This list will be less than 500 items, with as many as 6 attributes per item, Name, Weight, Quantity, ImageRefPath, etc.
Anyone have any suggestions and/or examples of a good way to store this?
Things that won't exist in the Items collection are:
No binary data. No Images. No BLOBS.
Maybe you could try to convert the items to a json string.Then save it to Xamarin.Essentials.Preferences.
For example,define a model first: