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;
}
}
}