- /// <summary>
- /// 对一个字符串进行倒序排列
- /// </summary>
- /// <param name="ReverseString">要排列的字符串</param>
- /// <returns>倒序后的字符串</returns>
- public static string Reverse(string ReverseString)
- {
- String output = string.Empty;
- for (int i = ReverseString.Length; i > 0; i--)
- {
- output += ReverseString.Substring(i - 1, 1);
- }
- return output;
- }
- //该片段来自于http://www.codesnippet.cn/detail/140120131608.html
来源: http://www.codesnippet.cn/detail/140120131608.html