I am having some trouble on replacing multiple text. I know to replace text is:
...Text.Replace("text", "replaced");
I did not have a clue on how to change multiple text and i tried the code below but it did not work and i made some search on the web to find help but i did not see nothing that could help me so i made this question. Here is what i have so far:
string[] List =
{
"1", "number1",
"2", "number2",
"3", "number3",
"4", "number4",
};
writer.WriteLine(read.
Replace(List[0], List[1]).
Replace(List[2], List[3]).
Replace(List[4], List[5])
);
writer.Close();
"this is a string"and your replacing list is{"this", "string","string", "something"}, what is the expected output?"string is a something"or"something is a something"?