Remove events without knowing their names

Posted by Carlo on Stack Overflow See other posts from Stack Overflow or by Carlo
Published on 2010-03-26T23:08:46Z Indexed on 2010/03/26 23:13 UTC
Read the original article Hit count: 261

Filed under:
|

Is it possible to instead of doing this:

person.Walking -= person_Walking1;
person.Walking -= person_Walking2;
person.Walking -= person_Walking3;

Do this:

person.Walking = // remove all the handlers without knowing their names

Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about events