Saving / retrieving settings at runtime using the .NET compact framework

I want to save / restore the settings of my Windows Mobile application at runtime. The amount of data is negligible, using a database is redundant.

What would be the best practice for such a task? I thought of something similar, for example, in the section "Settings: ApplicationSettingsBase" in the .NET full framework, but it is not supported in the compact version.

+4
source share
2 answers

This guy wrote an AppSettings implementation for the Compact Framework: http://www.codeproject.com/KB/mobile/SaveSettings.aspx

+2
source

If the structure of your settings class is not too fancy, you can use XmlSerializer.

The main disadvantage of XmlSerializer is that it cannot handle property types that are abstract, interfaces, or generic.

0
source

Source: https://habr.com/ru/post/1286522/


All Articles