public void RemoveTarget(ITargetProperty targetProperty) { _targets.Remove(targetProperty); }
public void AddTarget(ITargetProperty targetProperty) { _targets.Add(targetProperty); }
public StackFrame(ITargetProperty targetProperty) { _targetProperty = targetProperty; _sourcesToRemove = new HashSet <ISourceProperty>(_targetProperty.Sources); }
/// <summary> /// Starts tracking dependencies for the specified target property. Stops tracking dependencies when the returned disposable is disposed. Dependencies are tracked using a stack, so this is safe to call for a target property that has other target properties as its source. /// </summary> /// <param name="targetProperty">The target property.</param> public IDisposable StartDependencyTracking(ITargetProperty targetProperty) { _stack.Push(new StackFrame(targetProperty)); return(StopDependencyTrackingWhenDisposed.Instance); }
void ISourceProperty.RemoveTarget(ITargetProperty targetProperty) { _sourceProperty.RemoveTarget(targetProperty); }
void ISourceProperty.AddTarget(ITargetProperty targetProperty) { _sourceProperty.AddTarget(targetProperty); }
void ISourceProperty.AddTarget(ITargetProperty targetProperty) { _targets.Add(targetProperty); }