Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Properties Dictionary, Object size limit or type-limit?

$
0
0

Saw the entry under http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/app-lifecycle/#Properties_Dictionary and added storing some important data to the local storage.

This worked fine for the first couple of initial entries, storing short string data.

However since the properties collection can hold any object, I started adding two long keys, one holding a revision number and the other a dictionary<string, string> as value.

However when I now (re)start the application the stored data is no-where to be found. Any data written during the last session, if I have tried to stored the dictionary as well during it, will be no-where to be found.

Is there actually a limit to what kind of objects one can store to the properties? Is it limited to strings and other basic data-types?

My hack now will most likely end up being one separate key for holding the count for the dictionary and then build separate named entries for each line, such as 'data000', 'data001', 'data002' etc. And while this might work it would be nicer if I didn't have to. :)

Edit: Using 1.3.1


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>