📜  string.insert c# 代码示例

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