Beispiel #1
0
 public static void SetValueAndNotify <T>(this INotifyPropertyChanged obj, ref T field, T value, [CallerMemberName] string name = null)
 {
     field = value;
     obj.Notify(name);
 }
Beispiel #2
0
 public static void SetValueAndNotify <T>(this INotifyPropertyChanged obj, ref T field, T value, params string[] names)
 {
     field = value;
     obj.Notify(names);
 }