Fix inconsistent description of where events can be invoked from
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.
- ID: f782a9c5-2dc8-d8d1-b17d-246ab8524863
- Version Independent ID: f6f825c5-c64b-d13b-1c7e-a01bfb93093d
- Content: event - C# Reference
- Content Source: docs/csharp/language-reference/keywords/event.md
- Product: dotnet-csharp
- Technology: csharp-language-reference
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn
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.