diff --git a/RestSharp/IRestRequest.cs b/RestSharp/IRestRequest.cs index 942c64cdc..00e3cffa2 100644 --- a/RestSharp/IRestRequest.cs +++ b/RestSharp/IRestRequest.cs @@ -175,15 +175,15 @@ public interface IRestRequest IRestRequest AddBody (object obj); /// - /// Calls AddParameter() for all public, readable properties specified in the white list + /// Calls AddParameter() for all public, readable properties specified in the includedProperties list /// /// /// request.AddObject(product, "ProductId", "Price", ...); /// /// The object with properties to add as parameters - /// The names of the properties to include + /// The names of the properties to include /// This request - IRestRequest AddObject (object obj, params string[] whitelist); + IRestRequest AddObject (object obj, params string[] includedProperties); /// /// Calls AddParameter() for all public, readable properties of obj diff --git a/RestSharp/RestRequest.cs b/RestSharp/RestRequest.cs index 2cbf2ee8b..c6b5188aa 100644 --- a/RestSharp/RestRequest.cs +++ b/RestSharp/RestRequest.cs @@ -252,15 +252,15 @@ public IRestRequest AddBody (object obj) } /// - /// Calls AddParameter() for all public, readable properties specified in the white list + /// Calls AddParameter() for all public, readable properties specified in the includedProperties list /// /// /// request.AddObject(product, "ProductId", "Price", ...); /// /// The object with properties to add as parameters - /// The names of the properties to include + /// The names of the properties to include /// This request - public IRestRequest AddObject (object obj, params string[] whitelist) + public IRestRequest AddObject (object obj, params string[] includedProperties) { // automatically create parameters from object props var type = obj.GetType(); @@ -268,7 +268,7 @@ public IRestRequest AddObject (object obj, params string[] whitelist) foreach (var prop in props) { - bool isAllowed = whitelist.Length == 0 || (whitelist.Length > 0 && whitelist.Contains(prop.Name)); + bool isAllowed = includedProperties.Length == 0 || (includedProperties.Length > 0 && includedProperties.Contains(prop.Name)); if (isAllowed) {