string str="Hello World."
Replace(替换字符): 把句号替换成感叹号
str=str.RePlace(".","!");
2.Remove(删除字符):**
//Remove(int startIndex)从startIndex位置开始,删除此位置后所有的字符(包括当前位置所指定的字符)。
string newstring = str.Remove(5);
Console.WriteLine(newstring); //即:Hello
//Remove(int startIndex,int count)从startIndex位置开始,删除count个字符。
string newstring = st.Remove(6,1);
Console.WriteLine(newstring);
3.Substring(字符串提取):**
//Substring(int startIndex);从startIndex位置开始,提取此位置后所有的字符(包括当前位置所指定的字符)。
string st = "abcdef";
string newstring = st.Substring(2);
Console.WriteLine(newstring); //即:cdef
//Substring(int startIndex,int count);从star