collection of different sections in app.config file
-
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
-
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
-
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.
Thanks Richard for the quick response. It really helped a lot! Regards, Samar