I have a normal normal class, for example:
public class ObjectA
{
public string val {get;set;}
...
}
in another class, it contains an instance of an ObjectA object, for example:
public class ObjectB
{
private ObjectA objectA;
....
}
an instance of "objectA" will change frequently. I mean in ObjectB, some of the methods will have a new and new instance of object A and assign "objectA"
Is there a way to implement a trigger when the instance objectAchanges, will allow me to do something, for example:
objectA += OnChanged_ObjectA
protected void OnOnChanged_ObjectA()
{
}
source
share