Permalink
Browse files

Made BaseUrl property virtual

I have a settings object that is the one true source for `BaseUrl`. I'd rather avoid having to observe changes to that object in order to set the `BaseUrl` property on the `RestClient`. Instead, I have a derived `MyRestClient` that sets `BaseUrl` to the value of my settings object. If `BaseUrl` is virtual, I can do this. :)
  • Loading branch information...
Haacked committed Jul 18, 2012
1 parent 4059ae6 commit 3ea973927d91f0b3a3cfd47d973a9028d0bc0c7f
Showing with 1 addition and 1 deletion.
  1. +1 −1 RestSharp/RestClient.cs
View
@@ -261,7 +261,7 @@ IDeserializer GetHandler(string contentType)
/// <example>
/// client.BaseUrl = "http://example.com";
/// </example>
- public string BaseUrl
+ public virtual string BaseUrl
{
get
{

0 comments on commit 3ea9739

Please sign in to comment.