如下代码:
string strA = "asdfasdf";string strB = strA;
此时 strB指向的其实是 "asdfasdf" 而不是strA,所以改变strA的值strB不会变。同样改变strB的值其实是改变strB的指向所以A也不会变。