Insert char to List<string> [duplicate]
string.insert in c# doesn't overwrite the character that is in the startindex does it?
Solution 1:
For example, the return value of "abc".Insert(2, "XYZ") is "abXYZc".
So, no.
http://msdn.microsoft.com/en-us/library/system.string.insert.aspx
Solution 2:
Insert does addition only. Replace does change.
Edit: As others pointed out, strings are actual immutable, so both methods will return copy of your initial string. However, the semantic of the operations is as above.