In a new C# 2010 desktop application I need to place lots of items in an app.config file so there are no hard coded values. The items I want to place in this app.config file are items like database connections, where the application can obtain files it needs to work with.
Can you show me some code examples so I would know how to accomplish this goal?
C# config file
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.

FroglegRank #1,020 · 1.9K reputationPosted Oct 27, 2012, 12:04 PM EDT
Sie Ste196 reputationPosted Oct 27, 2012, 8:20 PM EDT
FroglegRank #1,020 · 1.9K reputationPosted Oct 28, 2012, 12:27 AM EDT
Sie Ste196 reputationPosted Oct 28, 2012, 5:02 PM EDT
FroglegRank #1,020 · 1.9K reputationPosted Oct 28, 2012, 5:12 PM EDT
The example i uploaded will create a config file in
C:\Users\user name\AppData\Local\\SettingsSample