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

Enum.GetName called on a non-enum type #68329

Closed
sharwell opened this issue May 25, 2023 · 0 comments · Fixed by #68330
Closed

Enum.GetName called on a non-enum type #68329

sharwell opened this issue May 25, 2023 · 0 comments · Fixed by #68330
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@sharwell
Copy link
Member

sharwell commented May 25, 2023

Originally reported through telemetry as AB#1784659

m["Kind"] = Enum.GetName(typeof(WorkspaceChangeEventArgs), args.Kind);

It would be reasonable to create an analyzer for this in dotnet/roslyn-analyzers.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 25, 2023
sharwell added a commit to sharwell/roslyn that referenced this issue May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant