Tuesday, February 24, 2009

Reversing strings - C#

string SomeStr = “SomeStr”; char[] OrigChars = SomeStr.ToCharArray();
Array.Reverse(OrigChars);
Label1.Text = new string(OrigChars);

No comments:

Post a Comment