dotnetmonitor.com

 
Index
Previous
Next

 

While most common types can be serialized in one of two ways listed above, there are some types that may not. In such cases, you have a few different options:

   Implement a TypeConverter for the type that can convert to and from string. The implementation can use a suitable serialization mechanism like one of the formatters/serializers that ship in the Framework or any custom mechanism you wish. You can then specify this converter on the type itself or on the property in your settings class.

   Specify a particular SettingsSerializeAs enum value using a SettingsSerializeAsAttribute. For example, if you wish to serialize a setting in binary format, simply specify SettingsSerializeAs.Binary.

What is the difference between application scoped and user scoped settings?
Why cant I change application scoped settings at runtime?
Where is the user.config file located in a non-Clickonce app?
Why is the user.config path so obscure?
Why is there a version number in the user.config path?
How can I get the user.config file path programmatically in a non-Clickonce app?