Explicit numeric conversions : Data Type : Data Type C# Examples


C# Examples » Data Type » Data Type »

 

Explicit numeric conversions









    
using  System;

class  MainClass
{
        public  static  void  Main()
        {
                uint  value1  =  312;
                byte  value2  =  (byte)  value1;
                Console.WriteLine("Value2:  {0}",  value2);
        }
}
    
   
  
   



Output

Value2: 56


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Data Type