public virtual bool Unbind(IBindingProperty property) { if (m_Input == property) { m_Input = null; m_Output = null; return(true); } return(false); }
public virtual bool TryConvert(IBindingProperty property, ref IBindingProperty output) { var input = property as IBindingProperty <TInput>; if (input == null) { return(false); } m_ForceUpdate = true; if (m_Output == null) { m_Output = new ConvertProperty <UOutput>(input.Path); m_Output.OnChanged += OnChanged; } m_Input = input; TryUpdate(); output = m_Output; return(true); }