public void ReadOnlyProperty_NotifyPropertyChanged() { if (this.appliedTo == this.Instance.GetType()) { DEBUGWRITE($"NestedNotifyPropertyChangedAttribute.OnInstanceConstructedAdvice: {GetInfo(Instance)}, Count = {HandlerDict.Count}"); var properties = XConfig.Select_NotifyProperties(Instance.GetType(), false); foreach (var property in properties) { var value = property.GetValue(Instance); if (value is INotifyPropertyChanged notifyPropertyChanged) { var handler = MakeNestedPropertyChangedHandler(property.Name); notifyPropertyChanged.PropertyChanged += handler; } } } }
private IEnumerable <PropertyInfo> SelectINotifyPropertyChanged(Type type) { var result = XConfig.Select_NotifyProperties(type, true); return(result); }