all groups > dotnet clr > july 2007 >
You're in the

dotnet clr

group:

Event as property?


Event as property? Ken Varn
7/2/2007 2:46:02 PM
dotnet clr: 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.


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

Re: Event as property? Jon Skeet [C# MVP]
7/2/2007 9:00:45 PM
[quoted text, click to view]

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.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
AddThis Social Bookmark Button