private void SetNumericProperty(string propertyName, object newValue) { var doubleValue = Convert.ToDouble(newValue, CultureInfo.CurrentCulture); if (propertyName == EffortProperty) { EntityContainer.AddEffort(this, doubleValue); } else if (newValue != null || doubleValue >= 0) { SetPropertyInternal(propertyName, doubleValue); } }