MvvmCross.Binding.Bindings.MvxFullBinding.ClearTargetBinding C# (CSharp) Method

ClearTargetBinding() protected method

protected ClearTargetBinding ( ) : void
return void
        protected virtual void ClearTargetBinding()
        {
            lock (this._targetLocker)
            {
                if (this._targetBinding != null)
                {
                    if (this._targetBindingOnValueChanged != null)
                    {
                        this._targetBinding.ValueChanged -= this._targetBindingOnValueChanged;
                        this._targetBindingOnValueChanged = null;
                    }

                    this._targetBinding.Dispose();
                    this._targetBinding = null;
                }
            }
        }