No, you cannot do things like overloading an assignment operator in C #. The best you can do is change the variable to a property and call the method or delegate or raise the event in your setter.
private string field; public string Field { get { return field; } set { if (field != value) { field = value; Notify(); } } }
This is done by many frameworks (for example, the WPF DependencyProperty system) to track property changes.
Mehrdad afshari
source share