ReturnExam re = new ReturnExam();
re.Juquest = jseleqj;
re.Muliselectquest = mseleqj;
re.Selectquest = seleqj;
re.Tiankongquest = tseleqj;
re.Wendaquest = wseleqj;
MemoryStream stream = new MemoryStream();
BinaryFormatter binFormat = new BinaryFormatter();//创建二进制序列化器
binFormat.Serialize(stream, re);
byte[] exam = stream.ToArray();
int len = exam.Length;
stream.Close();
时间: 2024-10-11 01:23:36