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);
}
}