Lets say you have a property like:
Person person1;
public Person Captin{
get{
return person1;
}
set{
person1 = value;
}
}
public void SomeFunction(){
Captin.name = "Hook"
}
In this case if you set the name on the property we know that the new name of Hook will get applied to the underlying value of person1. What if our implementation were a little different say:
public Person Captin{
get{
return ReadCaptinFromDisk();
}
set{
WriteCaptinToDisk(value);
}
}
public void SomeFunction(){
Captin.name = "Hook"
}
In this case for the underlying value to get set properly we need to have the Captin's set code called as part of the assignment to Captin.name.
I am interested in knowing if the parameter set code will call the set on assignments of field or method calls on property references. especially for this kind of situation where the value needs to be propagated to disk (etc.).