M
Mike
The code below does not seem very efficient if you have a very long string
and are doing many replace functions, there has to be a better way to do
this without reassigning the value type string over and over, any
suggestions? Thanks
string s = "ABCD";
s = s.Replace("AB", "12");
s = s.Replace("CD", "34");
// now s is "1234"
and are doing many replace functions, there has to be a better way to do
this without reassigning the value type string over and over, any
suggestions? Thanks
string s = "ABCD";
s = s.Replace("AB", "12");
s = s.Replace("CD", "34");
// now s is "1234"