private bool UpdatePropertyValues(OrderAddress address, Dictionary <string, string> properties) { bool updated = false; foreach (KeyValuePair <string, string> property in properties) { if (string.IsNullOrWhiteSpace(property.Value)) { continue; } PropertyInfo propertyInfo = address.GetType().GetProperty(property.Key); propertyInfo.SetValue(address, property.Value, null); updated = true; } return(updated); }