explicit cast : cast : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » cast »

 

explicit cast








    
 

using System;

class ExplicitConv {
    static void Main() {
        double a = 5.654321;
        int b;

        b = (int)a;
        Console.WriteLine("The value is {0}", b);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» cast