Boxing short : Byte box unbox : Data Type C# Examples


C# Examples » Data Type » Byte box unbox »

 

Boxing short









    
using  System;
using  System.Collections;

class  MainClass
{
    static  void  Main(string[]  args)
    {        
        
        short  s  =  25;
        Console.WriteLine("short  s  =  {0}",  s);
        Console.WriteLine("short  is  a:  {0}",  s.GetType().ToString());

    }
}
    
   
  
   



Output

short s = 25
short is a: System.Int16


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Byte box unbox