RestSharp 诉 WebClient?
我正在构建一个 Windows Phone 7 Silverlight 应用程序。有什么理由使用 RestSharp 而不是 WebClient 吗?我浏览过 RestSharp 网站,但并没有立即明显看出它的好处是什么。
I'm building a Windows Phone 7 Silverlight app. Is there any reason to use RestSharp instead of WebClient? I've looked around on the RestSharp site, but it's not immediately obvious what the benefits are.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RestSharp 消除了以下痛点:
request.AddParameter(name, value)
而不是手动编译请求体反序列化可能是最大的收获,因为对于大多数 API,您无需做太多工作即可将 XML 或 JSON 放入 C# 对象中。
我会查看这些页面以获取更多信息
https://github.com/restsharp/RestSharp/wiki
https://github.com/restsharp/RestSharp/wiki/ RestSharp-Blog-Posts-and-Links
欢迎在此或在 Google 上发布任何问题组
RestSharp removes the following pain points:
request.AddParameter(name, value)
instead of manually compiling request bodiesDeserialization is probably the biggest gain since for most APIs you don't have to do very much to get the XML or JSON into your C# objects.
I would check out these pages for more info
https://github.com/restsharp/RestSharp/wiki
https://github.com/restsharp/RestSharp/wiki/RestSharp-Blog-Posts-and-Links
Feel free to post any questions here or on the Google Group