Exemple #1
0
 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);
     }
 }
Exemple #2
0
 public TValue Get <TValue>(NotifyPropertyA <TClass, TValue> property)
 => ((NotifyPropertyA <TClass, TValue> .NotifyPropertyValue)_dict.GetOrAdd((NotifyPropertyA)property, (Func <NotifyPropertyA, NotifyPropertyA.NotifyPropertyValue>)property.GetValue)).Get();