简体   繁体   中英

Best way to store values in .Net Compact Framework using C#?

I have a WinForm application and I have many forms in my application .

These forms have some properties which I want to save when the form is closed and when i again load

the forms, I want to populate form properties.

I know some techniques like XmlSerialization or I can write my own xml files to store values.

But I want expert advice to do this in the best way on Compact framework .

What you all expert think could be the best way to store and retrieve data ?

SqlLite或类似的怎么样?

I'd use the existing serialisation mechanisms rather than rolling your own. If small disk footprint is important, use the binary serializer, if human readability is important use the XML one.

Perhaps you could use .ini files? Smaller than .xml since its just text, but less of it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM