Intercepting call

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want intercept the call to a object method or object property .
Its plausible ?

Are there any event fired when i invoke a object method or property ?
 
You normally you can't intercept direct method calls. Events are only fired
if the API supports them. If you provided more information about what you
wanted, then I might be able to provide a more practical design. But
normally there is not much more you can do with an API then they allow by
either inheritance or events.
 
I want intercept the call to a object method or object property .
Its plausible ?
This is what Aspect Oriented Programming is all about. You should look at
frameworks like Aspect# or Spring.NET. These frameworks enable you to create
a proxy for your class which can intercept class to methods and similar.

Aspect#: http://aspectsharp.sourceforge.net
Spring.net: http://www.springframework.net
Are there any event fired when i invoke a object method or property ?
No.

Anders Norås
blog: http://dotnetjunkies.com/weblog/anoras
 
Back
Top