StringBuilder动态添加字符串
时间:2010-10-13 来源:gull
StringBuilder sb = new StringBuilder();
sb.AppendFormat("{0} {1}", "Jeffrey", "Richer").Replace(" ","-");
String s = sb.ToString().ToUpper();
sb.Length = 0;
sb.Append(s).Insert(8, "Marc-");
s = sb.ToString();
Console.WriteLine(s);
相关阅读 更多 +