private void RaisePropertyChanged(string propertyName) { if (!ReadyForBind()) { return; } for (int i = 0; i < attachedBinders.Count; i++) { ABinder binder = attachedBinders[i]; Object unityObject = binder.Target; if (unityObject != null && !unityObject) { attachedBinders.RemoveAt(i); i--; continue; } binder.RebindOnPropertyChanged(propertyName); } }
public void DetachBinder(ABinder binder) { attachedBinders.Remove(binder); }
public void AttachBinder(ABinder binder) { attachedBinders.Add(binder); }