Writing a Custom ConfigurationSection to handle a Collection

added by abhi2434
9/12/2011 9:17:50 AM

114 Views

Here I have demonstrated how you can handle a collection of settings for a Configuration. I have attached Source code that demonstrate what I am demonstrating in the article.


2 comments

dpeterson
9/12/2011 9:18:30 AM
Very handy, I'm actually surprised this type of functionality isn't more accessible out of the box. I've never tried to do anything like this myself, I usually keep specific sections for dev and production database connections.
Thanks for sharing.

abhi2434
9/12/2011 5:44:25 PM
And now in .NET you can maintain more than one configuration. Based on debug or release or in production/ staging etc you can apply some section of .NET configuration easily.

In this post I have not given emphasis on the new feature but it could be definitely thought of from this context.