We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Rule SA1000 provides an error for target-typed new expressions.
For example if I have a field:
private readonly List<Student> students = new();
Rule SA1000 errors on the new. Doing the following fixes it, but I don't think that is the best solution.
private readonly List<Student> students = new ();
Is it possible to get SA1000 to accomodate target-typed new expressions? Similar to how it allows an expression like this:
var myStrings = new[] { "a", "b", "c" };
The text was updated successfully, but these errors were encountered:
I see it has been fixed now.
Sorry, something went wrong.
Duplicate of #3214
No branches or pull requests
Rule SA1000 provides an error for target-typed new expressions.
For example if I have a field:
Rule SA1000 errors on the new. Doing the following fixes it, but I don't think that is the best solution.
Is it possible to get SA1000 to accomodate target-typed new expressions? Similar to how it allows an expression like this:
The text was updated successfully, but these errors were encountered: