我今天读到,在c#字符串是不可变的,就像一旦创建它们不能被改变,那么下面的代码如何工作
string str="a"; str +="b"; str +="c"; str +="d"; str +="e"; console.write(str) //output: abcde
怎么变量的值变了?
c#
c# ×1