public void RollbackTo(TrackableDataContainerTracker tracker) { if (PersonTracker != null) { PersonTracker.RollbackTo(tracker.PersonTracker); } if (DictionaryTracker != null) { DictionaryTracker.RollbackTo(tracker.DictionaryTracker); } if (ListTracker != null) { ListTracker.RollbackTo(tracker.ListTracker); } }
public void RollbackTo(IDataContainer trackable) { if (PersonTracker != null) { PersonTracker.RollbackTo(trackable.Person); } if (DictionaryTracker != null) { DictionaryTracker.RollbackTo(trackable.Dictionary); } if (ListTracker != null) { ListTracker.RollbackTo(trackable.List); } }