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

suppress when there is explicit casting #8

Open
tugberkugurlu opened this issue Nov 16, 2014 · 1 comment
Open

suppress when there is explicit casting #8

tugberkugurlu opened this issue Nov 16, 2014 · 1 comment

Comments

@tugberkugurlu
Copy link
Contributor

We should suppress the errors when there is explicit casting. E.g.:

var product = (Product)GetProduct();

This should be OK. Even the below one?

var product = GetProduct() as Product;
@tugberkugurlu tugberkugurlu changed the title [VarDiagnosticAnalyzer] suppress when there is explicit casting suppress when there is explicit casting Nov 17, 2014
@ChrSteinert
Copy link
Contributor

Same as for new expressions. Going to add this exception (as it seems useful to me).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants