关于C#的装箱和拆箱的简单测试例子

 int i = 0;         //装箱         object obj = i;         Debug.Log(i);         Debug.Log(obj);         i = 10;         Debug.Log(i);         Debug.Log(obj);         //拆箱         object obj2 = 5;      
相关文章
相关标签/搜索