-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.dotnet-visualbasic/svcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.okr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Description
I have some AddHandlers and RemoveHandlers that all seem quite similar, so I have no clue why one is throwing this warning, and others aren't. This article is not particularly helpful, and when I did the Alt+Enter to show the potential fix (It basically just moved the RemoveHandler line in question to a new method), it showed the same warning on the "fixed" version!
It's also strange that it says the AddressOf expression "has no effect", when it has the effect of allowing a successful compile... not having one there is a syntax error.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 592d581c-131c-5835-4fe5-b9d44a0c5786
- Version Independent ID: 88ccadb3-7e46-599f-66f5-5d335eb51961
- Content: The 'AddressOf' expression has no effect in this context because the method argument to 'AddressOf' requires a relaxed conversion to the delegate type of the event
- Content Source: docs/visual-basic/misc/bc42328.md
- Product: dotnet-visualbasic
- GitHub Login: @KathleenDollard
- Microsoft Alias: kdollard
Copilot
Metadata
Metadata
Assignees
Labels
📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.dotnet-visualbasic/svcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.okr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Type
Projects
Status
✅ Done