Boxing makes it possible to call methods on a value

image_pdfimage_print

   
 
/*
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()); 
 
  } 
}


           
         
     


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