用 你的字符串.Replace('a','b'),即a被换成b
string str = "ABCDABCD";str = str.Replace("B","Z");
obj.Replace("yes","no");