📜  c# 将字符插入字符串中的位置 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:13.154000             🧑  作者: 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"