类型或命名空间名称“IgnoreDataMember”;找不到

发布于 2024-08-26 02:33:30 字数 134 浏览 3 评论 0原文

我在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

春庭雪 2024-09-02 02:33:30

您需要引用 System.Runtime.Serialization (以及可能的其他内容)来进行编译。

You need a reference to System.Runtime.Serialization (and possibly other things) to compile.

一梦等七年七年为一梦 2024-09-02 02:33:30

您使用的是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文