implicit boxing of an int

image_pdfimage_print
   
  
using System;

class MainClass {

    public static void Main() {
        int myInt1 = 10;
        Console.WriteLine("myInt1.ToString() = " + myInt1.ToString());
        Console.WriteLine("myInt1.GetType() = " + myInt1.GetType());

    }

}

   
     


This entry was posted in Data Types. Bookmark the permalink.