可能重复:
如何取消注册“匿名”事件处理程序
我有这样的代码:
Binding bndTitle = this.DataBindings.Add("Text", obj, "Title");
bndTitle.Format += (sender, e) =>
{
e.Value = "asdf" + e.Value;
};
我现在如何断开 Format 事件?
可能重复:
如何取消注册“匿名”事件处理程序
我有这样的代码:
Binding bndTitle = this.DataBindings.Add("Text", obj, "Title");
bndTitle.Format += (sender, e) =>
{
e.Value = "asdf" + e.Value;
};
我现在如何断开 Format 事件?