dotnet / dotnet/dotnet-api-docs
UUF: Code example is for a different delegate
Open
area-System.Runtime
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
### Type of issue
Other (describe below)
### Description
The code example is wrong. It is about EventHandler. The correct code example is the first example on this page: https://learn.microsoft.com/en-us/dotnet/standard/events/how-to-raise-and-consume-events.
### Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.eventhandler?view=net-8.0
### Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/EventHandler.xml
### Document Version Independent Id
45d1db6b-180e-bc7c-7cd5-2ca83367b161
### Article author
@dotnet-bot @gewarren
Contributor guide
Assessment
This issue has not been assessed yet.