public void Set <TValue>(NotifyPropertyA <TClass, TValue> property, TValue value) { if (((NotifyPropertyA <TClass, TValue> .NotifyPropertyValue)_dict.GetOrAdd((NotifyPropertyA)property, (Func <NotifyPropertyA, NotifyPropertyA.NotifyPropertyValue>)property.GetValue)) .Set(value)) { OnPropertyChanged(property.Name); } }
public TValue Get <TValue>(NotifyPropertyA <TClass, TValue> property) => ((NotifyPropertyA <TClass, TValue> .NotifyPropertyValue)_dict.GetOrAdd((NotifyPropertyA)property, (Func <NotifyPropertyA, NotifyPropertyA.NotifyPropertyValue>)property.GetValue)).Get();