dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
725 stars 1.56k forks source link

UUF: Code example is for a different delegate #10567

Open gewarren opened 2 weeks ago

gewarren commented 2 weeks ago

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

dotnet-policy-service[bot] commented 2 weeks ago

Tagging subscribers to this area: @dotnet/area-system-runtime