摘要:
//JSON标准序列化的辅助类public static string Serialize<T>(T data) { System.Runtime.Serialization.Json.DataContractJsonSerializer serializer = new System.Runtime.Serialization.Json.DataContractJsonSerializer(data.GetType()); using (MemoryStream ms = new MemoryStream()) { serializer.WriteObject(ms, data) 阅读全文
posted @ 2011-05-04 15:10 愚见未来 阅读(829) 评论(0) 推荐(0) 编辑