Reporter | Leland Green (leland) |
---|---|
Created | Jul 16, 2013 8:19:52 PM |
Updated | Apr 26, 2018 6:21:17 PM |
Resolved | Apr 26, 2018 6:19:23 PM |
Subsystem | Context Actions |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Duplicate |
Type | Bug |
Fix version | Unidentified prior version |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
With this code:
int n = 0;
foreach (var v in someiter)
{
...
n++;
}
ReSharper offers to split declaration and assignment. In the the scroll bar column it warns that it is assigned but never used. It does not offer to remove the variable, though. (I think it usually does.)
Please see the attached screenshots to enhance my explanation. ;-)
Thanks,
Leland...
int n = 0;
foreach (var v in someiter)
{
...
n++;
}
ReSharper offers to split declaration and assignment. In the the scroll bar column it warns that it is assigned but never used. It does not offer to remove the variable, though. (I think it usually does.)
Please see the attached screenshots to enhance my explanation. ;-)
Thanks,
Leland...