c# - Custom app.config section with a simple list of "add" elements -
how create custom app.config section simple list of add elements? i have found few examples (e.g. how create custom config section in app.config? ) custom sections this: <registercompanies> <companies> <company name="tata motors" code="tata"/> <company name="honda motors" code="honda"/> </companies> </registercompanies> but how avoid collection element ("companies") looks same appsettings , connectionstrings sections? in other words, i'd like: <registercompanies> <add name="tata motors" code="tata"/> <add name="honda motors" code="honda"/> </registercompanies> full example code based on op config file: <configuration> <configsections> <section name="registercompanies" type="my.myconfigsection, my.assembly" /> </config...