using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
using System.Collections.Generic;
代码如下:
            List<int> a = new List<int>();
            a.Add(1);
            a.Add(2);            BinaryFormatter b = new BinaryFormatter();
            System.IO.MemoryStream ms = new MemoryStream();
            b.Serialize(ms, a);
            object xx = b.Deserialize(ms);//执行到这一步出错:在分析完成之前就遇到流结尾请问高手们是如何解决的!