470,849 Members | 1,361 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

using Xmlserializer for Char datatype gives problems

I have a class that I serialize/deserialize using xmlserializer.
There are a few properties with char datatype.
I have a few xml files from which I want to create the objects. While
deserializing from xml if the properties having char datatypes have
numeric values(0-9) then everything worls fine. If I put any letter
e.g. A it starts throwing exception - "Input string is not in correct
format".
If I convert these properties to string, all data works. But I have to
keep these properties as chars for some reasons.
Is there a problem with the char datatype and xmlserialiser? Is there
any workaround for this?

thnx in advance,
Swati

Jun 26 '06 #1
0 1061

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Phil Galey | last post: by
6 posts views Thread by ryanselk | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.