public virtual void OnFieldSet(SetFieldJointPoint jp) { if (jp.Target == jp.This) { OnChanged((INotifyPropertyChanged)jp.This, jp.Field); PropertyChangedEventHandler evHandler = (o, e) => OnChanged((INotifyPropertyChanged)jp.This, jp.Field); if (jp.Value is INotifyPropertyChanged observable) { observable.PropertyChanged += evHandler; } if (jp.Field.GetValue(jp.This) is INotifyPropertyChanged originalObservable) { originalObservable.PropertyChanged -= evHandler; } } jp.Execute(); }
public void MockAdvice(SetFieldJointPoint jp) { advice(jp); }
public abstract object AroundSet(SetFieldJointPoint jp);