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..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top