Mega Code Archive

 
Categories / C# Tutorial / Data Type
 

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());   } } short s = 25 short is a: System.Int16