Just For Me

博客园 首页 新随笔 联系 订阅 管理

2011年4月7日 #

摘要: public static string Reverse(string str){ if (string.IsNullOrEmpty(str)) { throw new ArgumentException("参数不合法"); } StringBuilder sb = new StringBuilder(str.Length); for (int index = str.Length - 1; index >= 0; index--) { sb.Append(str[index]); } return sb.ToString();}public static strin 阅读全文
posted @ 2011-04-07 17:11 JunjieChang 阅读(454) 评论(0) 推荐(0) 编辑