C# 字符串反转

 private void button1_Click(object sender, EventArgs e)
        {
            char[] p_chr = text_input.Text.ToCharArray();
            Array.Reverse(p_chr, 0, text_input.Text.Length);
            text_output.Text = new StringBuilder().Append(p_chr).ToString();
        }

主要用到reverse。

原文地址:https://www.cnblogs.com/bedfly/p/13144002.html