类型或命名空间名称“IgnoreDataMember”;找不到
我在使用 twitterizer API 时收到此错误:
找不到类型或命名空间名称“IgnoreDataMember”
我已下载 API 源代码,但无法解决该错误。
I am getting this error while using the twitterizer API:
The type or namespace name 'IgnoreDataMember' could not be found
I have downloaded the API source code, but I haven't been able to resolve the error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要引用 System.Runtime.Serialization (以及可能的其他内容)来进行编译。
You need a reference to System.Runtime.Serialization (and possibly other things) to compile.
您使用的是 Visual Studio 2008 吗?您想要构建什么样的应用程序?
IgnoreDataMember 属性由 JSON 序列化类使用。它用于装饰类的属性,这些属性在从 json 反序列化对象时不应预期,也不应在将对象序列化为 json 时包含。
截至目前,Twitterizer 库不支持 Silverlight 或 Compact Framework。两者都有计划,但时间有限。
Are you using Visual Studio 2008? What kind of application are you trying to build?
The IgnoreDataMember attribute is used by the JSON serialization class. It is used to decorate properties of a class that should not be expected when deserializing an object from json, nor should be included when serializing the object to json.
As of now, the Twitterizer library does not support Silverlight or the Compact Framework. Both are planned, but time is limited.