"INeedADip" <in*******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
How can I change a particular char at a given index....
I want to do something like:
strText[2] = 'b';
But apparently the "strText[2]" is readonly?
Is there another way to get access to a particular character?
Use a StringBuilder...
StringBuilder textBuilder = new StringBuilder(256);
textBuilder.Append(strText);
textBuilder.Remove(2, 1);
textBuilder.Insert('b', 2);
strText = textBuilder.ToString();
I hope this helps.
carl