c# application and configuration settings
Posted
by Maks
on Stack Overflow
See other posts from Stack Overflow
or by Maks
Published on 2010-06-11T00:13:43Z
Indexed on
2010/06/11
0:23 UTC
Read the original article
Hit count: 303
Hi,
I never used Settings
class before but I found some articles on CodeProject which I'm currently reading (for example http://www.codeproject.com/KB/cs/PropertiesSettings.aspx) but so far I didn't see how to save string
array for getting it after application is started next time.
For example my application has several FileSystemWatcher
instances, with each instance several other directories are connected (for example one FSW instance is monitoring one directory for a change and when it happens it copies some file to several other directories), so I would have one string
array with watched paths representing FSW instances, and string
array for each of those paths, representing directories that are affected.
My question is, what should I use (Settings
class or something else), and how should I use that for storing application configuration that is variable number of string
arrays? Emphasize is on something I could use very soon as I don't have too much time to make custom class (but would have to if I cannot find solution) or dig into some obscure hacks.
Any tutorial link, code snippet would be very helpful.
Thanks.
© Stack Overflow or respective owner