G
Guest
Hi,
I am wondering how I could clear the invokation list of delegates.
I tried the following:
//make a chain
MyDel += SomeDel;
// Clear the chain
Delegate [] tmp = MyDel.GetInvocationList();
Delegate.RemoveAll(MyDel, tmp[0]);
Nothing (not even one delegate) is removed from the list.
What am I missing?
Thanks,
Lubomir
I am wondering how I could clear the invokation list of delegates.
I tried the following:
//make a chain
MyDel += SomeDel;
// Clear the chain
Delegate [] tmp = MyDel.GetInvocationList();
Delegate.RemoveAll(MyDel, tmp[0]);
Nothing (not even one delegate) is removed from the list.
What am I missing?
Thanks,
Lubomir