I have a CustomConfigurationSection that I have implemented. I would like to be able to support having many different named instances of this configuration section defined. However I would also like some way to identify a default instance of the ConfigurationSection if an application developer doesn't specify a specific named instance in code.
I could do this with an app setting:
<add key="myAppSectionDefault" name="myAppSectionName" />
I was wondering if this could be done in a more elegant way via a custom attribute on a CustomConfigurationSectionGroup?
<sectionGroup name="myAppGroup" defaultSection="myAppSection2" ...>
<section name="myAppSection1" .../>
<section name="myAppSection2" ... />
<section name="myAppSection3" .../>
</sectionGroup