Reversing strings - C#
string SomeStr = “SomeStr”; char[] OrigChars = SomeStr.ToCharArray();
Array.Reverse(OrigChars);
Label1.Text = new string(OrigChars);
Array.Reverse(OrigChars);
Label1.Text = new string(OrigChars);
Older blog migrated here on Feb 2009 (labels in footer). Code is design. Entrepreneurs are artists. Read about Narcissism.
Comments
Post a Comment