Serialization of immutable struct?

  • Thread starter Thread starter troy anderson
  • Start date Start date
T

troy anderson

How do you serialize to a file an immutable struct? If I add set {}
routines for all my public properties it works. But my intent is immutable

Thanks
 
If you serialize using the BinaryFormatter it should be working properly. Are
you serializing to XML?
 

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