EDN Admin
Well-known member
Hello all,
using code from here
<pre style="font-family:Consolas; background:white; color:black <span style="color:green http://www.deploymentzone.com/2008/09/19/idictionarytkeytvalue-ixmlserializable-and-lambdas/ http://www.deploymentzone.com/2008/09/19/idictionarytkeytvalue-ixmlserializable-and-lambdas/
[/code]
which is a well done serialized dictionary, I am trying to get an xml file to deserialize into a dictionary<string, object>. I have tried the following,
1. Created an IXmlIncludes interface that just has xml attributes of classes it could be ( [XmlInclude()] ).
2. Hard code the class types into the serializer constructor extra types parameter.
3. Read the xmlreaders name and localName and call a function that returns a Type of object from the string.
I have failed in all 3 cases. If there is some magic involved here please let me know as I currently feel like tossing my cpu out my front
View the full article
using code from here
<pre style="font-family:Consolas; background:white; color:black <span style="color:green http://www.deploymentzone.com/2008/09/19/idictionarytkeytvalue-ixmlserializable-and-lambdas/ http://www.deploymentzone.com/2008/09/19/idictionarytkeytvalue-ixmlserializable-and-lambdas/
[/code]
which is a well done serialized dictionary, I am trying to get an xml file to deserialize into a dictionary<string, object>. I have tried the following,
1. Created an IXmlIncludes interface that just has xml attributes of classes it could be ( [XmlInclude()] ).
2. Hard code the class types into the serializer constructor extra types parameter.
3. Read the xmlreaders name and localName and call a function that returns a Type of object from the string.
I have failed in all 3 cases. If there is some magic involved here please let me know as I currently feel like tossing my cpu out my front
View the full article