dotnet / dotnet/dotnet-api-docs

Example provided is for a different Delegate (the EventHandler<TEventArgs> Delegate)

Open
#10,585 7 comments 0 reactions 0 assignees View on GitHub
area-Meta 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

It is a confusing example.
This page is about the "`EventHandler Delegate`", but the example provided is for the "`EventHandler Delegate`".

I tried to get the "EventHandler Delegate" to work in my code, but it didn't work. I did eventually discover my mistake, but having an appropriate example would have made it much quicker.
I have no issue if you adjust the example to provide a sample for both Delegates.

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.