Be notified of method calls in .NET

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-06-03T10:29:50Z Indexed on 2010/06/03 10:34 UTC
Read the original article Hit count: 135

Filed under:
|
|

Basically, what I want to do is to be notified whenever a specific method has been called. I was hoping I could accomplish this using Reflection, but my attempts haven't gotten me anywhere yet, so I'm hoping that perhaps somebody else with the same need has accomplished this before and can enlighten me.

I figured using MethodInfo was the way to go, but like I said, I found nothing there that could help me accomplish what I wanted to do. Any suggestions, hints or solutions would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET