5
I am working with an application that currently uses the section appSettings to obtain application settings through ConfigurationManager.AppSettings.
But I would like a more complex structure for my configuration, something like this:
<configuration>
  <externalConnections>
    <connection name="Conn1" type="sharepoint">
      <username value="login">
    </connection>
    <connection name="Conn2" type="sap">
      <username value="login">
      <password value="password">
    </connection>
  </externalConnections>
</configuration>
I saw something related to configSections but I don’t know how to create a class to use this type of configuration. 
How do I create this configuration class? The way this class is used is from ConfigurationManager.AppSettings also?
Okay, my question is to use something more elaborate than the
onfigurationManager.AppSettings. How do I do that?– gmsantos
This notebook is suitable for you: https://msdn.microsoft.com/pt-br/library/system.configuration.configurationelement(v=vs.110). aspx
– bp002