posted on Monday, February 23, 2004 10:26 AM by demiliani

Application Configuration Settings with .NET

One of the best articles I've see in these days is written by Rick Strahl and talks about Building a better .NET Application Configuration Settings Class.

Configuration settings are an important part to any non-trivial application. They make it possible for users of the application to configure it both before the application is run for the first time and even while the Application is running. .NET provides a good rudimentary mechanism of storing and retrieving configuration settings in the application’s .config file with the ConfigurationSettings class, but this mechanism is missing a number of essential features. In this article Rick describes how we can improve on the base functionality that .NET provides by providing a class that makes it easy to add new keys, provides strong typing, allows for encrypting of keys and the ability to make changes to the settings at runtime and write them back out into the configuration file.

A must to read!

Comments