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

Comments on EventHandler<T> and MemberwiseClone is incorrect. #42605

Open
BillWagner opened this issue Sep 12, 2024 · 0 comments
Open

Comments on EventHandler<T> and MemberwiseClone is incorrect. #42605

BillWagner opened this issue Sep 12, 2024 · 0 comments
Labels
doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-csharp/svc fundamentals/subsvc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. Pri2

Comments

@BillWagner
Copy link
Member

Type of issue

Other (describe below)

Description

The discussion on how the event handlers use MemberwiseClone is incorrect. MemberwiseClone is a member of System.Object, not EventArgs. Removing the constraint in EventHandler<T> doesn't remove it from use.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/modern-events

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/modern-events.md

Document Version Independent Id

645a8a12-a026-bee9-7501-e8ec4a32ce31

Article author

@BillWagner

Metadata

  • ID: 2cb74e28-b327-0f9f-5fa5-882a00d10ceb
  • Service: dotnet-csharp
  • Sub-service: fundamentals
@dotnet-bot dotnet-bot added ⌚ Not Triaged Not triaged labels Sep 12, 2024
@BillWagner BillWagner added the doc-bug Problem with the content; needs to be fixed [org][type][category] label Sep 12, 2024
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Sep 12, 2024
@dotnet-policy-service dotnet-policy-service bot added the okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-csharp/svc fundamentals/subsvc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. Pri2
Projects
None yet
Development

No branches or pull requests

2 participants