Answers for "c sharp convert int to long"

C#
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