public string Reverse(string text)
{
char[] charArray = text.ToCharArray();
string reverse = String.Empty;
for (int i = charArray.Length - 1; i > -1; i--)
{
reverse += charArray[i];
}
return reverse;
}
// or
public static string Reverse( string s )
{
char[] charArray = s.ToCharArray();
Array.Reverse( charArray );
return new string( charArray );
}