c# convert long to int

60

c# convert long to int -

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

// throws OverflowException
Convert.ToInt32(myValue);

Comments

Submit
0 Comments