1 //装箱 把值类型打包到Object引用类型的一个实例中 2 int i = 10; 3 object obj = (object)i; 4 5 //拆箱 从对象中提取值类型 6 obj = 10; 7 i = (int)obj;