implicit boxing of an int : Boxing Unboxing : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » Boxing Unboxing »

 

implicit boxing of an int








    
 
using System;

class MainClass {

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

    }

}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» Boxing Unboxing