|Home||Back to Index|
I’m working on a small project at home, and I decided to add a custom configuration section to the App.config. If it weren’t for Derik Whittaker’s article (thanks Derik!), it’s unlikely that I would have figured it out.
So after importing one reference (System.configuration), descending from three different classes, overriding two methods, applying two attributes (one of them multiple times), making multiple casts, and repeatedly hardcoding the same strings, I can now parse six lines of XML.
It would be simpler to write a custom class and use LINQ to XML to load it. This is absurd.