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
When running StyleCop on a file that has a property with a array, that gets initialized:
public int[] MyProperty { get; set; } = { 0 };
The SA0102 error is generated
SA0102 : CSharp.CsParser : A syntax error has been discovered in file <...snip...>
This seems to be due to the initializer portion of the property:
Because if you remove = { 0 }; the error no longer occurs.
= { 0 };
Visual StyleCop Version 4.57.59.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When running StyleCop on a file that has a property with a array, that gets initialized:
The SA0102 error is generated
This seems to be due to the initializer portion of the property:
Because if you remove
= { 0 };
the error no longer occurs.Visual StyleCop Version 4.57.59.0
The text was updated successfully, but these errors were encountered: