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.
Development Central is the blog of Bill Sorensen, a professional software developer. Much of this will relate to C#, .NET, and OOP in general.
Disclaimer
These postings are provided "AS IS" with no warranties and confer no rights.