I am trying to use .net 4.0 lambda methodology to remove double quotes (") around items in an array. Here is the code I have, however, this does not seem to work.
What am I doing wrong?
string[] sa = new string[] { "\"Hello\"", "\"Goodbye\"", "\"Moshi\"", "\"Adios\"" };
// Trying to replace the
Array.ForEach(sa, s => s.Replace("\"", "")); // Doesn't remove the quotes surrounding the string "Hello".
foreach(var s in sa)
Console.WriteLine(s);
This still does not get rid of the " around the items.