You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like an option to not show the IDE0028 suggestion for existing variables, because it would typically result in the type not showing on the line at all, and I personally would rather the type be clearly apparent in such cases.
For Example:
On a line like this:
_someProperty=newList<string>();
Where it suggests simplifying to this:
_someProperty=[];
However if the variable or property was declared far away in the code, I find it more clear to leave it with the explicit type showing.
As opposed to a line like this where the type is still visible on the left so I do indeed want to simplify it on the right.
List<string> someOtherVariable = [];
In other words I like the type to always be showing at least once on the line.
The text was updated successfully, but these errors were encountered:
Analyzer
Diagnostic ID: IDE0028
Describe the improvement
I'd like an option to not show the IDE0028 suggestion for existing variables, because it would typically result in the type not showing on the line at all, and I personally would rather the type be clearly apparent in such cases.
For Example:
On a line like this:
Where it suggests simplifying to this:
However if the variable or property was declared far away in the code, I find it more clear to leave it with the explicit type showing.
As opposed to a line like this where the type is still visible on the left so I do indeed want to simplify it on the right.
In other words I like the type to always be showing at least once on the line.
The text was updated successfully, but these errors were encountered: