string str = "12345678"; char[] a = str.ToCharArray(); Array.Reverse(a); string str1=""; foreach (char b in a) { str1 += b.ToString(); }