Any opinions expressed here are my own and not necessarily those of my employer (I'm self-employed).

Jan 6, 2011

Customized .Net configuration the easy way

I stumbled across a great series of articles on how the .Net configuration features can be used:

Unraveling the Mysteries of .NET 2.0 Configuration by Jon Rista.

You'll find the MDSN documentation for System.Configuration here.

I've started creating my own configuration sections and they yield several advantages:
  • No XML parsing
  • No more misuse of appsettings
  • Extremely readable code
  • Easy validation of configuration values
  • Understandable error messages for configuration errors
So check out Rista's series of articles and start creating more robust and understandable custom configuration code!

1 comment:

Copyright notice

© André N. Klingsheim and www.dotnetnoob.com, 2009-2015. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to André N. Klingsheim and www.dotnetnoob.com with appropriate and specific direction to the original content.

Read other popular posts