Using Integers : int : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » int »

 

Using Integers








    

using System;

public class UsingIntegers
{
  static void Main(string[] args)
  {
    int MyInt = 12345;
    long MyLong = MyInt;
    
  }

  public long My2ndFunction(long MyLong)
  {
    try
    {
      long c = checked(MyLong * 500);
    }
    catch (OverflowException e)
    {
      Console.WriteLine(e);
    }

    return 0;
  }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» int