Boxing makes it possible to call methods on a value : Boxing Unboxing : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » Boxing Unboxing »

 

Boxing makes it possible to call methods on a value









    

/*
C#: The Complete Reference 
by Herbert Schildt 

Publisher: Osborne/McGraw-Hill (March 8, 2002)
ISBN: 0072134852
*/


// Boxing makes it possible to call methods on a value! 
using System; 
 
public class MethOnValue { 
  public static void Main() { 
 
    Console.WriteLine(10.ToString()); 
 
  } 
}


           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» Boxing Unboxing