Category Archives: c#

C# Example: Reading Configuration Values from App.config File

Prepare Configuration File * Create App.config file if it does not exist. – For web applications, use Web.config file instead. * Add a new section, e.g. myConfig, to App.config file: <?xml version="1.0"?> <configuration> <configSections> <section name="myConfig" type="System.Configuration.NameValueSectionHandler" /> </configSections>   … Continue reading

Posted in c# | Tagged , | Leave a comment