Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I am currently making a Windows Mobile device application and I need to store some data and then retrieve this data at a later point in time.

The data I am saving consists of 1 Date, 18 Integers and 1 Float.

The number of 'records' I suppose you could call them, that will ever be saved will be limited to 156. (1 per week for 3 years, in this application)

I have been pondering would it be more efficient to save these 'records', in the form of just the data types or as an object/instance of the class that contains them.

I have considered saving this data in XML, LIST(as the object or the data types) or an array, etc. But being honest I would not know which would work best.

Thanks in advance for any recommendations you guys can make. I'm not after the 'most' efficient manner of storing this data, just a method that is considered to be 'reasonable', but without to much of a slow down caused on the device.

Senior Crispy
Posted

1 solution

What you could do is serialize the data to disk by marking your collection class as Serializable. As you aren't using too much data, the serialization/deserialization will not take very long and is very simple. Just write the class out to isolated storage, and job done.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900