static void Main(string[] args)
    {        int a = 33;
        Console.WriteLine(a.ToString());
        Console.ReadKey();
    }
和static void Main(string[] args)
    {        int a = 33;
        Console.WriteLine(a);
        Console.ReadKey();
    }
是不是一样,后面的我没有写默认调用了吗

解决方案 »

  1.   

    上面的问题错了 应该是
       static void Main(string[] args)
        {        int a = 33;
            Console.WriteLine("hellp"+a);
            Console.ReadKey();
        }
    }

       static void Main(string[] args)
        {        int a = 33;
            Console.WriteLine("hellp"+a.tosting());
            Console.ReadKey();
        }
    }
    的区别
      

  2.   

    一样的。
    Console.WriteLine("hellp"+a);
    string拼接,系统自动调用toString
      

  3.   

    这个是C#的编译器做的事情,本质上调用的还是"hellp"+a.ToString(),如果你用MC++就可以很直接的发现这一点
    C#的编译器在后台为我们做了很多事情,这也是C#好用的原因吧