ericksoa/DynamicXmlReader — pull request #1 by KevinT (2012-04-21 04:02:49+00:00)
Title: Added support for index, refactored

Hi Erick

Thanks for publishing your DynamicXmlReader, its been very handy. I made a couple of tweaks which I thought you may/may not be interested in. I put them into 4 separate commits so you can cherry pick just the indexing support if you want to.

Essentially you can now do:

dynamicReader.Name["Age"] or
dynamicReader.Name.Age

This is useful because you can now use variables, for example:

string currentUser = "Bob"
dynamicReader.[currentUser].Age

Kind Regards