Skip to content

Commit c8e9348

Browse files
committed
Add missing SafeToString to ClientBase
1 parent 72dc98f commit c8e9348

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/GeekLearning.RestKit.Core/ClientBase.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,15 @@ protected IFormData GetFormData(object data)
153153
return new FormData(data);
154154
}
155155

156+
protected string SafeToString(object value)
157+
{
158+
if (value == null)
159+
{
160+
return null;
161+
}
162+
return value.ToString();
163+
}
164+
156165
/// <summary>
157166
/// Append the given query keys and values to the uri.
158167
/// </summary>

0 commit comments

Comments
 (0)