public static void Raise <T>(this ValueChangedEventHandler <T> handler, object sender, T oldValue, T newValue)
 {
     if (handler != null)
     {
         ValueChangedEventArgs <T> e = ValueChangedEventArgs.Get <T>(oldValue, newValue);
         handler(sender, e);
         e.Return();
     }
 }
Beispiel #2
0
 public static ValueChangedEventArgs <T> Get <T>(T oldValue, T newValue) =>
 ValueChangedEventArgs <T> .Get(oldValue, newValue);