引用类型
object类
object obj1 = 10;
object obj2 = obj1;
Console.WriteLine(obj1);
Console.WriteLine(obj2);
![运行结果](https://i-blog.csdnimg.cn/blog_migrate/caa2d9d4b5c2559361c15514378f880c.png)
string类(一旦初始化将不再改变)
string str1 = "hello";
string str2 = str1;
Console.WriteLine(str1);
Console.WriteLine(str2);
str1 = "hello world";
Console.WriteLine(str1);
Console.WriteLine(str2);
![运行结果](https://i-blog.csdnimg.cn/blog_migrate/3fd300cece2606e4b192aeae2ffc9aac.png)