List <T> for string []
2 answers
List<Foo> l = GetMyList();
string[] myStrings = l.Select(i => i.Bar).ToArray();
Note that, like all linq code, this still goes through the collection - you just don't write the loop yourself.
Also note that you should avoid calling .ToArray () until the last moment. Are you sure IEnumerable won't be enough here?
+12