2014年3月11日

Linq to Sql 序列化和反序列化

摘要: publicclassTest{publicListGetList(stringstr){DataContractSerializerdcs=newDataContractSerializer(typeof(List));XmlReaderxr=XmlReader.Create(newStringReader(str));Listlt=(List)dcs.ReadObject(xr);xr.Close();returnlt;}publicstringWriteList(Listlt){DataContractSerializerdcs=newDataContractSerializer(typ 阅读全文

posted @ 2014-03-11 13:03 苏东辰 阅读(671) 评论(0) 推荐(0) 编辑

导航