.NET Object Serialization and Persistence

Serialize (stream,obj); stream.Close(); When you are done with the stream, you should close it (just good housekeeping, nothing specific to serialization). To deserialize an object, create a stream and a BinaryFormatter object, and call Deserialize(). Note that Deserialize() returns an object, so you have to downcast to the actual type: ................
................