1: using System;
     2: 
     3: namespace ConfigurationExample
     4: {
     5:   class Configure
     6:   {
     7:     [STAThread]
     8:     static void Main(string[] args)
     9:     {
    10:       //this is easy, create your reader
    11:       System.Configuration.AppSettingsReader asrConfig = new System.Configuration.AppSettingsReader();
    12:       //get somewhere to store the results
    13:       string strValue;
    14:       //get the results
    15:       strValue = ((string)(asrConfig.GetValue("myKeyValue",typeof(string))));
    16:       //display the results
    17:       System.Console.WriteLine(strValue);
    18:     }
    19:   }
    20: }
    21: