Answers for "c# long to int"

C#
0

c# long to int

int result =  Convert.ToInt32(long value);
Posted by: Guest on March-24-2020
0

c# convert long to int

// wraps around
int myIntValue = unchecked((int)myLongValue);

// throws OverflowException
Convert.ToInt32(myValue);
Posted by: Guest on August-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language