I want to do this:
string s = \"abc\"; s[1] = \'x\';
and s will become \"axc\". However, it seems that string[i] only has a getter and has
yes in c# string can not be altered.
but we can try this
string s = "abc"; s = s.Replace('b', 'x'); Console.WriteLine(s);
answer will be "axc". as this will replace the old string with new string.