using System;
namespace ConfigurationExample
{
class Configure
{
[STAThread]
static void Main(string[] args)
{
//this is easy, create your reader
System.Configuration.AppSettingsReader asrConfig = new System.Configuration.AppSettingsReader();
//get somewhere to store the results
string strValue;
//get the results
strValue = ((string)(asrConfig.GetValue("myKeyValue",typeof(string))));
//display the results
System.Console.WriteLine(strValue);
}
}
}