docs icon indicating copy to clipboard operation
docs copied to clipboard

Fix inconsistent description of where events can be invoked from

Open Julian-C10 opened this issue 4 years ago • 1 comments

I noticed that in this article it states that "Events are a special kind of multicast delegate that can only be invoked from within the class or struct where they are declared (the publisher class)." But in the comments of the previous code snippet, it states "Wrap the event in a protected virtual method to enable derived classes to raise the event."

I think it would be clearer if the first sentence stated "from within the class (or derived classes) or struct", because when I first read it I thought that events could only be invoked from the publisher class, and never in their derived classes.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Julian-C10 avatar May 01 '22 14:05 Julian-C10

Thanks for the suggestion @Julian-C10

I've added it to our backlog, and I've added the "up for grabs" label. Your description makes it clear what should be added to the article to address this issue.

BillWagner avatar May 02 '22 16:05 BillWagner