Configuration file reading. Best practice
- by Andrew Florko
Application stores configuration data in custom section of configuration file. This information is used all over the application.
Nowadays I use helper static class to to provide access like this (some code omitted or simplified):
[XmlRoot("webSiteSection")]
public class WebSiteConfig : IConfigurationSectionHandler
{
public static…