Re: Consuming your own events.

Sebastien Lambla <[email protected]> Fri, 1 Feb 2008 08:35:46 +0000
Newsgroups gmane.comp.windows.devel.dotnet.clr
Message-ID <[email protected]>
RaiseXxx / HandleXxx pattern, and explicit Before/After or Cancelable events
when an event can or should be cancelled.

I'm also objecting to the idea that all methods are non virtal by default
but all event raising methods are virtual.

--
SerialSeb
http://serialseb.blogspot.com


> -----Original Message-----
> From: Discussion of development on the .NET platform using any managed
> language [mailto:[email protected]] On Behalf Of silky
> Sent: 31 January 2008 23:52
> To: [email protected]
> Subject: Re: [DOTNET-CLR] Consuming your own events.
>
> On Feb 1, 2008 10:07 AM, Sebastien Lambla <[email protected]> wrote:
> > Asp.net event handling hooking uses OnXxx=delegate... IE uses
> onclick...
> >
> > Most of the developers I work with are using the OnXxx for handling
> events
> > because they're web devs and it makes sense to them...
> >
> > You raise interesting questions. But me worrying about how people use
> my API
> > and not having the right reaction when overriding a virtual is an
> issue, and
> > one that has caused quite a few long-running bugs over the year.
> >
> > If you need to rely on analysis tools for errors like those, I still
> > consider that your contract wasn't strong enough.
> >
> > I think we've reached the point where I'm on my own in this quest, so
> I'll
> > leave it at that for now.
>
> Seb, I may have missed it in amongst all the posts; but what do you
> propose instead of the "OnXXX" approach?
>
>
> > --
> > SerialSeb
> > http://serialseb.blogspot.com
>
> --
> http://lets.coozi.com.au/
>
> ===================================
> This list is hosted by DevelopMentorR  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com