I'm trying to detect whenever a property setter is called (and run some code as a result). I could write a method into the setter of every property:
private string name;
public string Name
{
get { return name; } set { OnChange(this); name = value; }
}
But this gets tedious when you have hundreds of properties. Is NInject capable of intercepting setter methods?
In terms of purpose, I'm trying to track every object which changes.