How do you encapsulate the binary serialization?

How do you encapsulate the binary serialization?

public static void SerializeBinary( object o, string file_name)
{
   using (FileStream fs = new FileStream(file_name, FileMode.Create))
   {
      BinaryFormatter fmt = new BinaryFormatter ();
      fmt.Serialize(fs, o);
   }
}
How do you implement a custom serialization?
How do you implement a custom serialization? - CUSTOM SERIALIZATION implementation...
Difference between the SoapFormatter and the XmlSerializer
SoapFormatter and XmlSerializer - SOAP formatter will actually take the field values of an object and store all of that information in the stream passed...
How can I optimize the serialization process?
How can I optimize the serialization process? - The first call to a Web Service takes long because XmlSerializer generate an assembly optimized for each type in memory....
Post your comment