一些常用的

StringBuilder去除最后一个字符 :sb.Remove(sb.Length-1, 1);

以“;”分隔某个字符串:

string[] stringlist=str.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);

 

四舍五入 :Math.Round(total, 2, MidpointRounding.AwayFromZero);

posted @ 2012-06-12 14:19  jeffrey77  阅读(129)  评论(0编辑  收藏  举报