I have wrote this extension function to reverse the single string value. I think I can short it more please suggest.
public static string ReverseSingleString(this string value)
{
string newString = string.Empty;
char[] chars = new char[value.Length];
char[] chars2 = new char[value.Length];
int j = 0;
foreach (char c in value)
{
chars[j] = c;
j++;
}
j = 0;
for (int i = chars.Length - 1; i >= 0; i--)
{
chars2[j] = chars[i];
newString += chars2[j].ToString();
j++;
}
return newString;
}