- // 倒置字符串
- static public string Reverse( string s )
- {
- char[] charArray = s.ToCharArray();
- Array.Reverse( charArray );
- return new string( charArray );
- }
- //该片段来自于http://www.codesnippet.cn/detail/140120131591.html
来源: http://www.codesnippet.cn/detail/140120131591.html