While I'm at it on things that I'd like to see, why don't we have an object query language in C#? I can't tell you how much I dislike walking the object model in search of properties that I need. Why can't I just do the following?
Create a collection, nodeset or dataset and pass my root object with an XPath style query that returns all of the items I need?
Instead, I have to walk the dot "." hierarchy.
RootObject.GetPropertyValue("employees").SubObject.GetPropertyValue("employeeNum");
And then iterate through all of the objects to find each one.
So what I’d like to do is use XPath queries on object graphs? So maybe I can do something like this using the XPathNavigator to query an object graph. I’ll have to try it and then I’ll have to profile it to see if the overhead is going to kill me on performance. Or Hmmm, maybe I'll get something like this in X#.
More to come…
Sean