Declaring the datatype dynamically reading from an xml string

Posted by NLV on Stack Overflow See other posts from Stack Overflow or by NLV
Published on 2010-03-22T10:18:59Z Indexed on 2010/03/22 10:21 UTC
Read the original article Hit count: 280

Hello

I've this strange issue. I've an xml string which looks like below -

<key><int>5</int></key><value><int>10</int>

The above xml is obtained after serializing a Dictionary using Paul's Code. Now i want to convert the xml back to the dictionary.

How can i get the type "int" from the xml and declare the dictionary as follows?

Dictionary<int, int>

Any clues?

© Stack Overflow or respective owner

Related posts about serialization

Related posts about xml-serialization