-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Labels
Area-IDEIDE-IntelliSenseCompletion, Signature Help, Quick InfoCompletion, Signature Help, Quick Infohelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Description
As an example, look at the following class definition:
using System.Collections.Generic;
public class C
{
public object Prop { get; set; }
public IEnumerable<int> PropWithEnumerable { get; set; }
}When typing foreach (var x in c.|cursor here|, we should preselect the PropWithEnumerable. We can do this for variable assignment (ie IEnumerable<int> x = c.|cursor here|), so this should be just extending the case to foreach enumerations. As an added bonus it would be great if it was smart about an explicitly typed enumerator variable, so if I had an IEnumerable<int> and an IEnumerable<string> property and had explicitly specified the foreach variable to be a string it would select the correct property.
Metadata
Metadata
Assignees
Labels
Area-IDEIDE-IntelliSenseCompletion, Signature Help, Quick InfoCompletion, Signature Help, Quick Infohelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Type
Projects
Status
Complete