Serialize Objects with enumerations

  • Thread starter Thread starter jw56578
  • Start date Start date
J

jw56578

I have a public property in an object that is of a Enum type,
When i try to deserialze an XML representation of the object for that
property it errors out because I have a 1 as integer in that specific
field.
Any ideas on how to get around this. The Enum is reprented as an
integer so why can't it accept it?
 
Have you tried specifying the text of the value instead of 1?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top