Reverse

static class Helpers
{
   public static string Reverse(this string s)
   {
      char[] c = s.ToCharArray();
      Array.Reverse(c);
      return new string(c);
   }
}
Example:
string s = "Test";
string r = s.Reverse(); // "tseT"

Description

Reverse a string

Details

Double click on the code to select all.

 

;