static void Main(string[] args){ int a = 5; object obj = a; //box a = 123;Console.WriteLine(a + "," + obj); //AConsole.WriteLine(a + "," + (int)obj); //BConsole.WriteLine(a.ToString() + "," + obj);//CConsole.Read(); }
2 回答
- 2 回答
- 0 关注
- 592 浏览
添加回答
举报
0/150
提交
取消