[Solved] How do I reverse text in C#? [closed]


char[] chararray = this.toReverse.Text.ToCharArray();
Array.Reverse(chararray);
string reverseTxt = "";
for (int i = 0; i <= chararray.Length - 1; i++)
{
    reverseTxt += chararray.GetValue(i);
}
this.toReverse.Text = reverseTxt;

Hope this helps

Demo Image

4

solved How do I reverse text in C#? [closed]