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

CA1859: Use concrete types when possible for improved performance #7474

Open
MrAntix opened this issue Nov 8, 2024 · 1 comment
Open

CA1859: Use concrete types when possible for improved performance #7474

MrAntix opened this issue Nov 8, 2024 · 1 comment

Comments

@MrAntix
Copy link

MrAntix commented Nov 8, 2024

Type of issue

Typo

Description

Hello

I get this a lot in my unit tests when I am testing a service that explicitly implements an interface.
In this case, I must return the interface or the method I am testing cannot be called

Can you improve the checks to stop this case?
I know I can supress it

Many thanks

Page URL

https://learn.microsoft.com/en-gb/dotnet/fundamentals/code-analysis/quality-rules/ca1859

Content source URL

https://github.com/dotnet/docs/blob/main/docs/fundamentals/code-analysis/quality-rules/ca1859.md

Document Version Independent Id

c8f7f102-2398-9acc-71b8-b0f848a05b92

Article author

@gewarren

Metadata

  • ID: 0e2d460f-c6f3-1e26-d932-b7e69746e513
  • Service: dotnet-fundamentals
@gewarren
Copy link
Contributor

@jaredpar I think this needs to be transferred to the roslyn-analyzers repo, but I don't have permissions. Can you transfer it?

@jaredpar jaredpar transferred this issue from dotnet/docs Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants