C# - Check which event changed / accessed a Property
- by binil
I have a class with property say
private string fieldSelectedItem;
public string FieldSelectedItem
{
get
{
return fieldSelectedItem;
}
set
{
fieldSelectedItem = value;
}
}
it is accessed from many place.
I came across a situation that the a property in class is accessed by some event. and also some event is changing the value. i tried debugging. is it possible to check which event/function has changed/accessed the property. is there any method to do so.