Possible Duplicate:
What is the best way to store user settings for a .NET application?
Hello.
What is the best way to store application settings in .Net 4.0?
Windows Registry? Application.Settings?
What if I want to be able to update program and keep settings from older version (New version can have more new setting and some old ones deleted)?
What if I want to store collection of my custom objects?
I know there is similar question but it’s about .Net 2.0. Maybe there are some new ways of saving settings in 4.0.
Thank you in advance.
MS has been trying to get people out of the registry for the past 2 OS versions. Also, as @Scott Anderson said in a comment, nothing has significantly changed with .Net 4.0 in this regard.
If this is a local application with no backing data store, then go ahead and use the app.config file.
If you want to store local data then I’d recommend using something like sql lite or a similar mechanism in which you can easily create tables and query it as necessary. This would help with versioning as well.