12-Mar-2015 16:49

You have the freedom to store your settings where ever you would like to.Expected Output: Key: Settings1, Value: Very Key: Setting2, Value: Easy Key: Settings1, Value: Very Key: Setting2, Value: Easy Key: Modification Date, Value: With this mechanism you can read and update simple key/value pairs within your application without digging any deeper in the System. The following examples show the other features like the new windows forms configuration mechanism, create your own configuration section and how you can easily store lists of objects in the App.config file with the new Enterprise Library helper classes.

When you add a settings file to your class library project you can and merge the settings with the App.config file of your hosting executable.This can be useful if you want to enforce that every application that uses your library can have its own settings inside the App.config file of the executable.They Forms designers were so nice to create from your config values automatically an access class and came up with an consistent model to store application global config files in the app.file and user specific settings within the user profile in user.config.Please note that the Forms configuration model is not available in class library projects since you have no App.config file for your Dll. I have looked at my blog referrer statistics and saw about 20 hits/day by Google.

When you add a settings file to your class library project you can and merge the settings with the App.config file of your hosting executable.This can be useful if you want to enforce that every application that uses your library can have its own settings inside the App.config file of the executable.They Forms designers were so nice to create from your config values automatically an access class and came up with an consistent model to store application global config files in the app.file and user specific settings within the user profile in user.config.Please note that the Forms configuration model is not available in class library projects since you have no App.config file for your Dll. I have looked at my blog referrer statistics and saw about 20 hits/day by Google.App Settings has been deprecated in favor of Configuration Manager. Beside from the naming change you can now also write your application settings.