I would like to use configuration file .settings to save this struct:
struct sR22Protocole
{
Int32 inputkey;
Int32 outputkey;
Int32 voltage;
Int32 Ohm;
Int32 Correction;
};
In the settings designer, I can add different type but it doesn't show my struct in the browse section. Is there any way that the designer has access to my struct? If no, Is there any way to add it programmaticaly?
I believe the class (or struct?) must be able to be serialized to use in the settings file. I followed this blog post when I did this for a default object in an application:
http://www.blackwasp.co.uk/CustomAppSettings.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With