Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
incrediblesuperdude@gmail.com - 03 Jul 2007 10:53 GMT
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
incrediblesuperdude@gmail.com - 03 Jul 2007 11:01 GMT
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

On 3 jul, 11:53, incrediblesuperd...@gmail.com wrote:
> Hi everybody,
>
[quoted text clipped - 5 lines]
> Kind regards,
> Gerben Heinen
Michael Nemtsev - 03 Jul 2007 11:24 GMT
Hello incrediblesuperdude@gmail.com,

I recommed to look at Aspect Orient Programming: http://en.wikipedia.org/wiki/Aspect-oriented_programming
Because they use that approach u are required

---
WBR,  Michael  Nemtsev [.NET/C# MVP].  
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

> Is it possible to raise an event when a function from an object is
> exited/returned

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.