I\'ve got a String array that I\'m wanting to add to a string builder by way of LINQ.
What I\'m basically trying to say is \"For each item in this array, append a li
Use the "ForEach" extension method instead of "Select".
stringArray.ToList().ForEach(x => stringBuilder.AppendLine(x));
or
Array.ForEach(stringArray, x => stringBuilder.AppendLine(x));