Reporter | Vladimir Reshetnikov (nikov) |
---|---|
Created | May 3, 2012 11:18:46 PM |
Updated | May 3, 2012 11:18:46 PM |
Priority | Normal |
Type | Feature |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
using System.Collections.Generic; using System.Linq; class C { static void Foo(IEnumerable<string> strings) { var arr = (string[]) from s in strings select s.ToLower(); var list = (List<string>) from s in strings select s.ToLower(); } }
Suggest to invoke .ToArray() or .ToList() instead.