static void Main(string[] args) { int a = 5; object obj = a; //box a = 123;
Console.WriteLine(a + "," + obj); //A Console.WriteLine(a + "," + (int)obj); //B Console.WriteLine(a.ToString() + "," + obj);//C
Console.Read(); }