Can't XmlSerializer serialize a class with a Color field?

  • Thread starter Thread starter qrli
  • Start date Start date
Q

qrli

public class ToBeSerialized {
// This field is alway ignored by XmlSerializer
public Color color;
}

How can I make that field serialized correctly?

thx in advance!
 
Strange, because Color is documented to be serializable, are you sure that
Color is the unserialized member?
Anyhow just make your class to implement ISerializable.
 

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