internal static void Reverse(char[] array, int index, int len)
{
char temp;
for (int near = index, far = len - 1; near < far; ++near, --far)
{
temp = array[near];
array[near] = array[far];
array[far] = temp;
}
}
internal static void Reverse(char[] array)
{
Reverse(array, 0, array.Length);
}
internal static String Reverse(String theString)
{
char[] array = theString.ToCharArray();
Reverse(array, 0, array.Length);
return new String(array);
}