public IDisposable Sync(INotifyPropertyChanged source, IEnumerable <INotifyPropertyChanged> targets, string propertyName, SyncMode syncMode = SyncMode.TwoWay) { var sourceContext = new ReflectionSyncContext <T>(source, propertyName); var targetContexts = targets.Select(x => new ReflectionSyncContext <T>(x, propertyName)); return(Sync(sourceContext, targetContexts, syncMode)); }
public IDisposable Sync(INotifyPropertyChanged source, INotifyPropertyChanged target, string propertyName, SyncMode syncMode = SyncMode.TwoWay) { var sourceContext = new ReflectionSyncContext <T>(source, propertyName); var targetContext = new ReflectionSyncContext <T>(target, propertyName); return(Sync(sourceContext, targetContext, syncMode)); }