1、格式化字符串
.Format ( string format , object obj )
2、截取字符串
.Substring ( int startIndex , int length )
3、分割字符串
.Split ( params char[] separator )
4、插入字符串
.Insert ( int startIndex , string value )
5、填充字符串
.PadLeft ( int totalWidth , char paddingChar )
.PadRight ( int totalWidth , char paddingChar )
6、删除字符串
.Remove ( int startIndex )
.Remove ( int startIndex , int count )
7、复制字符串
.Copy ( string str )
.CopyTo ( int sourceIndex , char[] destination , int destinationIndex , int count )
8、替换字符串
.Replace ( char OChar , char NChar )
.Replace ( string OValue , string NValue )
9、可变字符串类
StringBuilder ( string value , int cap )
常用的方法:Append / AppendFormat ; Insert / Remove ; Replace