Friday, October 9, 2009

Reading attribute with ConfigurationElementCollection

I was programming a part of a configuration file like this







I will use the ConfigurationElementCollection.... so the elements are not very difficult. Create a class for the element with the properties name and url and use this in a class which derived from the ConfigurationElementCollection.

But getting the value of the title attribute on the element is more difficult. I have not yet found a nice way to do does. For now I am use a dirty hack.

No comments:

Post a Comment