Cancelling events

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

Hi,

Is the design pattern of Cancellable events a good one? So we can have
non readonly properties that can be set in the EventArgs derived class but I
cannot see any documentation on the requirement or recommendations regarding
this on MSDN.

Is there any?

Thanks.
 
news.microsoft.com said:
Hi,

Is the design pattern of Cancellable events a good one? So we can have
non readonly properties that can be set in the EventArgs derived class but I
cannot see any documentation on the requirement or recommendations regarding
this on MSDN.

Is there any?

Thanks.
Is there a specific use-case that you can cite here? I want to
understand why you are questioning the pattern. It definitely makes
sense in some cases such as applications where you want the plugins to
provide a feedback to users on some stuff and those might need this kind
of event..
 
Back
Top