protected virtual void SetStringCollectionProperty(string propertyName, IBizoData target, string key, NameValueCollection collection, bool applyNullValues) { var values = collection.GetValues(key); if ((values == null || values.Length == 0) && !applyNullValues) { return; } var property = target.GetType().GetProperty(propertyName); if (property == null) { return; } var method = property.GetSetMethod(); if (method == null) { return; } method.Invoke(target, new object[] {values}); }
protected virtual void SetStringCollectionProperty(string propertyName, IBizoData target, string key, NameValueCollection collection, bool applyNullValues) { var values = collection.GetValues(key); if ((values == null || values.Length == 0) && !applyNullValues) { return; } var property = target.GetType().GetProperty(propertyName); if (property == null) { return; } var method = property.GetSetMethod(); if (method == null) { return; } method.Invoke(target, new object[] { values }); }