check the code down:
Actually I am not sure about what you want exactly. This code serializes and deserializes the object of type AAA. I have added the member TTT into AAA to save the type into it. So you can check it from the XML file.
Th code shows the type. I hope this answers what you want. If you need anything else please let me know.
Notice that serializables should be public; class and members.
Main Topics
Browse All Topics





by: jaime_olivaresPosted on 2009-11-04 at 02:36:45ID: 25737974
basically you cannot, unless you serialize some kind of schema along with your object.
most class members are serialized as strings so there is no clue if they were strings or numerical.