替换子串

基本类型 / 字符串

using System;

var startString = "3, 2, 1, go!";
startString = startString
    .Replace("1", "one")
    .Replace("2", "two")
    .Replace("3", "three");
//startString = "three, two, one, go!"

Console.WriteLine(startString);