Substring replacement in C#
Forums:
var startString = "3, 2, 1, go!";
startString = startString.Replace("1", "one").
Replace("2", "two").Replace("3", "three");
//startString = "three, two, one, go!"
- Log in to post comments
var startString = "3, 2, 1, go!";
startString = startString.Replace("1", "one").
Replace("2", "two").Replace("3", "three");
//startString = "three, two, one, go!"