2013年12月3日

Linq To Json

摘要: 代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.Serialization;using Newtonsoft.Json;using Newtonsoft.Json.Converters;using System.Web.Script.Serialization;namespace JsonDemo{ [DataContract] public class User { [DataMember] public int UserID { 阅读全文

posted @ 2013-12-03 17:24 谭一丹 阅读(219) 评论(0) 推荐(0) 编辑

vs2008中使用Newtonsoft.Json

摘要: 异常:找不到方法:“Boolean System.Runtime.Serialization.DataContractAttribute.get_IsReference()”在使用Newtonsoft.Json时,如果已经引用了Newtonsoft.Json,还报以上错误,那么请确保安装了.netframework3.5sp1,安装了.netframework3.5sp1问题解决。 阅读全文

posted @ 2013-12-03 16:32 谭一丹 阅读(1543) 评论(0) 推荐(0) 编辑

导航