I'm trying to modify the values of the array but it doesn't get modified:
string buzones = File.ReadAllText("c:\\Buzones");
string[] buzoneslist = buzones.Split(',');
Array.ForEach(buzoneslist, x =>
{
x = x.Replace(",", "");
});
It's like I'm doing a string.Replace without setting the resultant value to the variable:
s.replace(",", "");
instead of s=s.replace(",", "");
Is it possible to accomplish inside a lambda expression?.
Select
instead and create a new array. – leppie Jun 11 '13 at 6:04