例证:

string peom1 = "Kubla Khan";

string peom2 = "Kubla Khan";

string peom3 = String.Copy(peom2);

Boolean b1 = peom1.Equals(peom2);   //true
Boolean b2 =Object.ReferenceEquals(peom1,peom2);  // true  返回 true 就足以证明string 是引用类型;且string类型是只读的,修改就会新建一个string实例  
Boolean b3 = Object.ReferenceEquals(peom1,peom3); // false

05-23 02:59