Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. collection of different sections in app.config file

collection of different sections in app.config file

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharptutorialworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dashingsidds
    wrote on last edited by
    #1

    Hi Experts, In one of my project functionality I had a requirement of needing a list of all the sections in my app.config file. I was wondering if there is a class (or anything for that matter) inbuilt in .net which would return a collection of sections present in a app.config configuration file. For example if my app.config is having two sections say "appSettings" and "ConnectionString" then that class should return me a List<string> with 2 values "appSettings" and "ConnectionString". If anyone is aware of anything regarding this then please let me know. Thanks in advance! Regards, Samar

    L 1 Reply Last reply
    0
    • D dashingsidds

      Hi Experts, In one of my project functionality I had a requirement of needing a list of all the sections in my app.config file. I was wondering if there is a class (or anything for that matter) inbuilt in .net which would return a collection of sections present in a app.config configuration file. For example if my app.config is having two sections say "appSettings" and "ConnectionString" then that class should return me a List<string> with 2 values "appSettings" and "ConnectionString". If anyone is aware of anything regarding this then please let me know. Thanks in advance! Regards, Samar

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Take a look at the articles by Jon Rista here on CodeProject: Unraveling the Mysteries of .NET 2.0 Configuration[^].

      It's time for a new signature.

      D 1 Reply Last reply
      0
      • L Lost User

        Take a look at the articles by Jon Rista here on CodeProject: Unraveling the Mysteries of .NET 2.0 Configuration[^].

        It's time for a new signature.

        D Offline
        D Offline
        dashingsidds
        wrote on last edited by
        #3

        Thanks Richard for the quick response. It really helped a lot! Regards, Samar

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups