By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,773 Members | 1,777 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,773 IT Pros & Developers. It's quick & easy.

Intercepting call

P: n/a
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 ?
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
"Fenix" <Fe***@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
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 ?

Jul 21 '05 #2

P: n/a
>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
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.