事件处理程序委托如何删除自己?
像这样的代码
void timerTick(object sender, EventArgs e)
{
if (!IsHolding){
return;
}
UtilityStoryboardManager.PlayerStoryboard("End", (_) =>{
IsHolding = false;
//call some function or perform some logic
timer.Stop();
//How Can a eventhandler delegate remove itself ??
//timer.Tick -= timerTick;
}, null);
}