Serialization of enums

  • Thread starter Thread starter Fernando Callejon
  • Start date Start date
F

Fernando Callejon

Hello, i'm trying to serialize a class with a enum property...it seems to be
serializing ok, but when i try to de-serialize it throw me an error like
"[value] isn't valid for type [enum]". someone have done this before? i'm
sorry by my english
 
Is the enum embedded in the class or outside in the namespace (same file,
not in the class)?

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***********************************************
Think outside the box!
***********************************************
 
i tried the two ways, in namespace and in the class.

Cowboy (Gregory A. Beamer) said:
Is the enum embedded in the class or outside in the namespace (same file,
not in the class)?

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***********************************************
Think outside the box!
***********************************************
Fernando Callejon said:
Hello, i'm trying to serialize a class with a enum property...it seems to
be serializing ok, but when i try to de-serialize it throw me an error
like "[value] isn't valid for type [enum]". someone have done this
before? i'm sorry by my english
 

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

Similar Threads

Serializing an enum variable 3
serialize 2
Can't serialize ArrayList 2
Deserialization of invalid enum values 3
Serialize Color to XML 2
Reflection, Enums and their values? 3
Enum TypeConverter 3
enum problems 5

Back
Top