Tech Off Post

Single Post Permalink

View Thread: null + null = ?
  • User profile image
    Londoner

    What would you expect the result of the following code to be?

    [STAThread]

    static void Main( string[] args )

    {

          Console.WriteLine( ( null + null ).GetType() );

          Console.ReadLine();

    }



    Now compile it and see for yourself. Magic...