String is immutable (constant/readonly)object. Its value cannot be modified once it has been created.
Use StringBuilder class (It's mutable object).
StringBuilder sb = new StringBuilder();
sb.Append("HeleoWorld");
sb[3] = 'l';
Console.WriteLine(sb);
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241