Conversions:Numeric Types:Explicit Numeric Conversions

image_pdfimage_print

   
  

using System;

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


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