Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mdell-seradex opened this issue Oct 17, 2024 · 3 comments
Labels
area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. Pri3 Indicates issues/PRs that are low priority untriaged New issue has not been triaged by the area owner

Comments

@mdell-seradex
Copy link
Contributor

mdell-seradex commented Oct 17, 2024

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

@issues-automation issues-automation bot added the Pri3 Indicates issues/PRs that are low priority label Oct 17, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Oct 17, 2024
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 17, 2024
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@steveharter steveharter added area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Oct 18, 2024
@steveharter
Copy link
Member

The sample for EventHandler should not use EventHandler<TEventArgs>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. Pri3 Indicates issues/PRs that are low priority untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

2 participants