清空StringBuilder

StringBuilder sb = new StringBuilder(10);
sb.Append("Test");
sb.Length = 0; //这句清空

 

posted @ 2015-04-29 09:25  乁卬杨  阅读(132)  评论(0编辑  收藏  举报