none
Configuration manager collection types

    Question

  • Does a Configuration manager collection type exist where I can map multiple value attributes into a single key? So the collection would be Dictionary<string, List<string>> or equivalent versus a HashTable?
    Tuesday, April 25, 2017 3:03 PM

Answers

  • You can create a custom configuration section and retrieve it the way you want. In .NET 4.5, you will need to implement IConfigurationSectionHandler. Prior versions used ConfigurationSection. You can refer to following.

    https://msdn.microsoft.com/en-us/library/system.configuration.iconfigurationsectionhandler(v=vs.110).aspx

    https://msdn.microsoft.com/en-us/library/2tw134k3.aspx

    Thanks,

    Hari


    Hari Mothukuri

    • Marked as answer by Ritmo2k Tuesday, April 25, 2017 4:23 PM
    Tuesday, April 25, 2017 3:44 PM