Incorrect Loop-to-LINQ conversion in R#: 5.0.1530.25
Hi,
R# suggest convert following code:
- var zonesIndex = new Dictionary<Guid, int>();
- for (int i = 0; i < zoneArr.Length; i++) zonesIndex.Add(zoneArr[i].Id, i);
into
- var zonesIndex = zoneArr.ToDictionary<Zone, Guid, int>(t => t.Id, t => i);
where 'i' undefined.
Please sign in to leave a comment.
I've created issue in out bug tracker for this problem:
http://www.jetbrains.net/jira/browse/RSRP-131023