Serialize

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

I want to serialze my data (data type is user defined structure). There are
2 tools to do this work. One is to call XmlSerializer in namespace
"system.Xml.Serialization",the other is to call BinaryFormatter in namespace
"system.Runtime.Serialization" and
"system.Runtime.Serialization.formatter.Binary". I'm not sure which is
better.

Anybody can tell me ?
 
Using the binary formatter will result in smaller data files but they will
not be XML based.

Binary formatter is faster (no XML formatting overhead).
 
Thank you, Ray , I can understand.

Peter

Ray Cassick (Home) said:
Using the binary formatter will result in smaller data files but they will
not be XML based.

Binary formatter is faster (no XML formatting overhead).
 

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