C#中字符串不可变的意义

string s = "234";
s.Insert(2, "999");
Console.WriteLine(s);
int i = 0;
i++;
Console.WriteLine(i); 

如代码。

posted @ 2014-07-25 10:08  舞乄  阅读(371)  评论(0编辑  收藏  举报