title: sub appsettings in the appsetting node c#
body: <p>I am using the app.config file that is created with a console application and I can read the val1 of the key1 using the <code>ConfigurationSettings.AppSettings["key1"].ToString()</code></p>
  
  <pre><code>&lt;configuration&gt;  
      &lt;startup&gt; 
          &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /&gt;
      &lt;/startup&gt;  
      &lt;appSettings&gt;
          &lt;add key="key1" value="val1" /&gt;
          &lt;add key="key2" value="val2" /&gt;  
      &lt;/appSettings&gt; 
  &lt;/configuration&gt;
  </code></pre>
  
  <p>but I have too many keys and values that I want to make them categorized.</p>
  
  <p>I found something that is difficult to use in my application since I want to access the keys in a similar way to the above one</p>
  
  <p><a href="http://www.codeproject.com/Articles/12267/Custom-AppSettings" rel="noreferrer">Showing all nodes and can't read a node without getting all the nodes</a></p>
  
  <p>for example what I want to do:</p>
  
  <pre><code>&lt;appSettings&gt;
      &lt;Section1&gt;
          &lt;add key="key1" value="val1" /&gt;
      &lt;/Section1&gt;
      &lt;Section2&gt;
          &lt;add key="key1" value="val1" /&gt;
      &lt;Section2&gt;
  &lt;/appSettings&gt;
  </code></pre>
  
  <p>and if there is a way to access it using
  <code>ConfigurationSettings.AppSettings["Section1"].["key1"].ToString()</code></p>