C# Is it possible to wire up an event to a method when it is finished?

Posted by Martijn on Stack Overflow See other posts from Stack Overflow or by Martijn
Published on 2010-04-08T09:31:45Z Indexed on 2010/04/08 9:33 UTC
Read the original article Hit count: 194

Filed under:

I have a .dll file and in there, there's a method called A. When I call that method I'd like to call a method of my own, method B. So my question is, is it possible to call method B immediately when method A is finished?

Offcourse I can call method A and after that call method B manually. But I was wondering is there a manner to do this automatically, maybe with an event? So when method A is finished the event gets fired somehow and method A is called.

© Stack Overflow or respective owner

Related posts about c#