gpt4 book ai didi

c# - 算术运算导致 tweetsharp 溢出异常

转载 作者:太空狗 更新时间:2023-10-30 00:32:09 27 4
gpt4 key购买 nike

您好,我对 tweetsharp sdk 有疑问。我尝试用下面的代码阅读推文,有时我并不总是接受这个异常(exception):“算术运算导致溢出”。我搜索了但没有找到原因?

TweetSharp.TwitterService tester = new TwitterService();

tester.AuthenticateWith(consumerkey, consumersecret, accesstoken, accesstokensecret);

var a = tester.Search(new SearchOptions { Q = "screenname", Count = 100}); //On this line i take the excepiton

最佳答案

作为构建源代码的替代方案(由于 Windows Phone SDK 依赖性等原因,这可能会很棘手),您可以试试这个分支:
https://github.com/timothy-makarov/tweetsharp

这是包裹在 NuGet 包中的 TweetSharp 的非官方错误分支:
http://www.nuget.org/packages/TweetSharp-Unofficial/

我们来自 TweetSharp v2.3.0,更新到 TweetSharp v2.3.1 并没有解决我们的 JSON 反序列化问题。不过,用非官方的 v.2.3.1.2 包替换了它。

关于c# - 算术运算导致 tweetsharp 溢出异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19669609/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com