Skip to content

Warn when user code casts between runtime-based COM interop types and source-generated COM interop types #87425

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

Merged
merged 2 commits into from
Jun 13, 2023

Conversation

jkoritzinsky
Copy link
Member

Warn for these casts that will always fail. Contributes to #87350 (first item on the task list).

Also fix one case of this that I missed when transitioning System.Transactions.Local (which proves that this analyzer is useful).

@ghost
Copy link

ghost commented Jun 12, 2023

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

Warn for these casts that will always fail. Contributes to #87350 (first item on the task list).

Also fix one case of this that I missed when transitioning System.Transactions.Local (which proves that this analyzer is useful).

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices

Milestone: -

@jkoritzinsky jkoritzinsky merged commit 70af30f into dotnet:main Jun 13, 2023
@jkoritzinsky jkoritzinsky deleted the com-mix-cast-warn branch June 13, 2023 03:10
@ghost ghost locked as resolved and limited conversation to collaborators Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants