测试

ustbwuyi 2009-09-10 05:04:34
测试


public string Serialize(TechSummaryInfo summary)
{
BinaryFormatter formate = new BinaryFormatter();

using (MemoryStream stream = new MemoryStream())
{
formate.Serialize(stream, summary);
byte[] bytes = new byte[stream.Length];
stream.Read(bytes, 0, bytes.Length);
return Encoding.UTF8.GetString(bytes);
}

}
...全文
58 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ustbwuyi 2009-09-12
  • 打赏
  • 举报
回复

Regex reg = new Regex(patten1, RegexOptions.Multiline);
llsen 2009-09-10
  • 打赏
  • 举报
回复
?
ustbwuyi 2009-09-10
  • 打赏
  • 举报
回复
测试测试


public string Serialize(TechSummaryInfo summary)
{
BinaryFormatter formate = new BinaryFormatter();

using (MemoryStream stream = new MemoryStream())
{
formate.Serialize(stream, summary);
byte[] bytes = new byte[stream.Length];
stream.Read(bytes, 0, bytes.Length);
return Encoding.UTF8.GetString(bytes);
}

}

7,765

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧