I want to implement a mechanism that change bool variable to true any time I call to set function (I have couple of setters functions). Sample Code:
private bool isSomethingChanged = false;
public void SetName(string _name)
{
// change name
}
I don't want to write: isSomethingChanged = true;
at the end of all setters functions.
I want it to happen automatically. Is it possible ?