for (int i = 0; i < s.Length -1; i++)
{
temp = s[i]; // no errors here
s[i] = s[j]; //Property or indexer string.this[int] cannot be assigned to -- it is read only
s[j] = temp; //Property or indexer string.this[int] cannot be assigned to -- it is read only
}
I am dumb so please explain to me as if I was an 8 year old. Is this something you cannot do in C#? How do I fix this?