Reputation: 122480
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.
Upvotes: 13
Views: 4835
Reputation: 78124
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
Upvotes: 21