2012年11月16日

序列化对象

摘要: 1privatestaticobjectdeserialize(byte[]byteArray)2{3IFormatterformatter=newBinaryFormatter();4MemoryStreamms=newMemoryStream();5ms.Write(byteArray,0,byteArray.Length);6ms.Position=0;7returnformatter.Deserialize(ms);8} 阅读全文

posted @ 2012-11-16 10:23 weblogical 阅读(155) 评论(0) 推荐(0) 编辑

导航