The installer may implement different behavior / logic when updating the property, so you do not need to manually implement it in every place where the property can be updated.
He can:
- automatically update other fields
- Confirm the new value (for example, make sure the email address matches the regular expression)
- , ,
:
private string _myField;
private int _myField_num_updated;
private DateTime _myField_updated_at;
public string MyProperty
{
get { return _myField; }
private set {
_myField = value;
_myField_num_updated++;
_myField_updated_at = DateTime.Now;
}
}