Hi,
Im trying to compile an exercise, that reads a string backward which I would on fixing this error extend it to ceasar's cipher.
my code is here:
The error message is this:Cannot assign to 'ToCharArray' because it is a 'method group'Code:private void button1_Click(object sender, EventArgs e)
{
string stg2c="";
string cstg="" ;
char[] characterarray;
stg2c = textBox1.Text;
characterarray=stg2c.ToCharArray;
for (int i = characterarray.Length - 1; i >= 0; i--)
textBox2.Text += (characterarray[i]);
}
Any help pls?
