Reflection to raise an event when a function of an object is called

  • Thread starter Thread starter incrediblesuperdude
  • Start date Start date
I

incrediblesuperdude

Hi everybody,

Is it possible in .Net to get an event, everytime an object is
accessed? I mostly interested in an event when a function of the
object is called. I don't want to add an event to the code of my
class.

Kind regards,
Gerben Heinen
 
Hi,

I just had the idea that I could write a get-accessor for the object
and use that to call some functions when the object is accessed. But
then I am left with another question:
Is it possible to raise an event when a function from an object is
exited/returned?

Kind regards,
Gerben Heinen
 
Back
Top