Skip to content

Commit 12e588f

Browse files
committed
reintroduce params (accidentally removed after misreading a ReSharper suggestion)
1 parent c406fc9 commit 12e588f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RestSharp/IRestRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public interface IRestRequest
183183
/// <param name="obj">The object with properties to add as parameters</param>
184184
/// <param name="includedProperties">The names of the properties to include</param>
185185
/// <returns>This request</returns>
186-
IRestRequest AddObject (object obj, string[] includedProperties);
186+
IRestRequest AddObject (object obj, params string[] includedProperties);
187187

188188
/// <summary>
189189
/// Calls AddParameter() for all public, readable properties of obj

RestSharp/RestRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public IRestRequest AddBody (object obj)
260260
/// <param name="obj">The object with properties to add as parameters</param>
261261
/// <param name="includedProperties">The names of the properties to include</param>
262262
/// <returns>This request</returns>
263-
public IRestRequest AddObject (object obj, string[] includedProperties)
263+
public IRestRequest AddObject (object obj, params string[] includedProperties)
264264
{
265265
// automatically create parameters from object props
266266
var type = obj.GetType();

0 commit comments

Comments
 (0)