Your type should have the SettingsSerializeAs() attribute. The enum parameter of type SettingsSerializeAs indicates how the value will be serialized, the following values ββare possible:
- Line
- Xml
- Binary
- ProviderSpecific
Since this attribute can only be applied to class types, your own type must be a class.
Secondly, the type must have a constructor without parameters. This is because if a parameter is not specified in the App.config file, the default value for this parameter will be set in the setting.
If you have just declared your class, the designer will not accept the type if you have not created your solution.
florien
source share