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 / CLR / July 2007

Tip: Looking for answers? Try searching our database.

Event as property?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken Varn - 02 Jul 2007 19:46 GMT
Is it possible to expose an event as a property?  I want to be able to
bubble up events from a class that my class references as a member without
having to have my class pass on an event from the class that it references.
Instead, I would like to do this via a property.  To make matters a bit more
complicated, I would like to do this in managed C++.

If there is some other suggested way to do this, please let me know.

Signature

---------------------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
MailID = varnk
Domain = diebold.com
---------------------------------------------

Jon Skeet [C# MVP] - 02 Jul 2007 21:00 GMT
> Is it possible to expose an event as a property?  I want to be able to
> bubble up events from a class that my class references as a member without
[quoted text clipped - 3 lines]
>
> If there is some other suggested way to do this, please let me know.

You need to be very clear about the difference between an event and a
delegate.

See http://pobox.com/~skeet/csharp/events.html for more information.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too


Rate this thread:







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.