Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 1st, 2012  |  syntax: C#  |  size: 0.28 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. string[] lines = textBox1.Text.Replace("\r", "").Split(new char[] {'\n'});
  2.      
  3. for (int i = 0; i < lines.Count(); ++i)
  4. {
  5.         char[] symbols = lines[i].ToCharArray();
  6.         Array.Reverse(symbols);
  7.         lines[i] = new string(symbols);
  8. }
  9.      
  10. textBox1.Text = string.Concat(lines);