c# string.replace in foreach loop
Posted
by paradox
on Stack Overflow
See other posts from Stack Overflow
or by paradox
Published on 2010-04-26T08:28:52Z
Indexed on
2010/04/26
8:33 UTC
Read the original article
Hit count: 261
Somehow I can't seem to get string replacement within a foreach loop in C# to work. My code is as follows :
foreach (string s in names)
{
s.Replace("pdf", "txt");
}
Am still quite new to LINQ so pardon me if this sounds amateurish ;)
© Stack Overflow or respective owner