Generics and Duck-Typing XML in .NET?
问题 I'm working with some XML representations of data instances. I'm deserializing the objects using .NET serialization but something in my soul is disturbed by having to write classes to represent the XML... Below is what I'd LOVE to do but I don't know if the syntax or if it is even possible: Consider the following: dim xmlObject = SomeXMLFunction() 'where some function returns an object/string representation of xml... xmlObject.SomePropertyDefinedInTheXML = SomeFunction() Any suggestions on