ConfigurationManager.OpenExeConfiguration() vs XML file

Posted by Vince on Stack Overflow See other posts from Stack Overflow or by Vince
Published on 2009-03-30T05:13:06Z Indexed on 2010/04/09 18:13 UTC
Read the original article Hit count: 638

Filed under:
|

Hi,

Could someone tell me the advantages to using the ConfigurationManager class which load's a config file for manipulation VS an XML file with a class you build to read it yourself?

Recently, I built a class which inherits from ConfigurationSection in order to manipulate a custom section within app.config. This was quite a bit of work compared to just opening and reading an XML file.

Some people chose the first approach, others chose the second.

What's good practice?

© Stack Overflow or respective owner

Related posts about c#

Related posts about configuration