|
After serializing to stream, the sequenced byte array is obtained, and the receiving end is deserialized. Serialization:
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter bf = new BinaryFormatter ();
ArrayList lst = new ArrayList ();
lst.Add ("123");
MemoryStream stream = new MemoryStream ();
bf.Serialize (stream, lst); |
|