How do I Unregister 'anonymous' event handler

Posted by PK on Stack Overflow See other posts from Stack Overflow or by PK
Published on 2009-08-28T16:35:42Z Indexed on 2010/05/28 6:31 UTC
Read the original article Hit count: 190

Filed under:
|
|
|
|

Say if I listen for an event:

Subject.NewEvent += delegate(object sender, NewEventArgs e)
{
    //some code
});

Now how do I un-register this event? Or just allow the memory to leak?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET