HighTechTalks DotNet Forums  

using Xmlserializer for Char datatype gives problems

Dotnet XML microsoft.public.dotnet.xml


Discuss using Xmlserializer for Char datatype gives problems in the Dotnet XML forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default using Xmlserializer for Char datatype gives problems - 06-26-2006 , 02:48 AM






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


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.