感覺應該有個sb.Clear();或者sb.Empty();之類,但是沒有,只能用sb.Remove(0,sb.Length);
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("hello");
sb.Append("world");
Response.Write("Length:" + sb.Length);
sb.Remove(0, sb.Length);//清空StringBuilder的方法
Response.Write("|" + sb.ToString() + "|");