📜  c# 将字符添加到字符串 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:09.778000             🧑  作者: Mango

代码示例2
//Insert method returns a copy, it does not alter the string since strings are immutable
string str = "abc";
str = str.Insert(2, "XYZ"); //str == "abXYZc"