string str = " ABCdef ";
string res = str.ToLower(); //把字符串转化成小写并返回
string res = str.ToUpper(); //把字符串转化成大写并返回
string res = str.Trim(); //去掉字符串前面跟后面的空格
string res = str.TrimStart(); //去掉字符串前面的空格
string res = str.TrimStart(); //去掉字符串前面的空格
string[] strArray = str.Split('.'); //以'.'来拆分字符串
Array.Sort(数组名); //对数组进行排序