Reporter | Roy Dallal (Roy.Dallal) |
---|---|
Created | Feb 29, 2012 2:34:34 PM |
Updated | Feb 29, 2012 2:34:34 PM |
Priority | Normal |
Type | Usability Problem |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Sergey Shkredov (serjic.shkredov) |
Subsystem | Code Completion |
Affected versions | 6.1.1 |
Fixed in build | No Fixed in build |
I have the following code:
There are of course errors (see print screen) but what I thought Resharper was supposed to do when I stand on the last line was give the option to change the type of elements to the type specified in argument.ArrayElements.
But it was missing. I got a tooltip but no actions available.
If I changed the code to:
var elements = new List<int>();
Then I got the option to change the elements list to the right type.
The scenario:
I wanted to create a list of elements but didn't remember the type of the elements so decided to leave it blank for now (and let Resharper do the work;)).
For the same reason I was stuck on elements.Add(new );
On the last line I was sure Resharper will give the option to change the type of elements but it was missing.
I am using Build 6.1.44.78
var elements = new List<>(); foreach (var element in parameter.Array) { elements.Add(new ); } argument.ArrayElements = elements.ToArray();
There are of course errors (see print screen) but what I thought Resharper was supposed to do when I stand on the last line was give the option to change the type of elements to the type specified in argument.ArrayElements.
But it was missing. I got a tooltip but no actions available.
If I changed the code to:
var elements = new List<int>();
Then I got the option to change the elements list to the right type.
The scenario:
I wanted to create a list of elements but didn't remember the type of the elements so decided to leave it blank for now (and let Resharper do the work;)).
For the same reason I was stuck on elements.Add(new );
On the last line I was sure Resharper will give the option to change the type of elements but it was missing.
I am using Build 6.1.44.78