CSharp examples for System:String Reverse
Reverse a String
using System.Text; using System;/*from www.j av a 2 s.com*/ public class Main{ public static string Reverse(string s) { if (s == null) throw new ArgumentException("s is null"); var charArray = s.ToCharArray(); Array.Reverse(charArray); return new string(charArray); } }