Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# convert long to int

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

// throws OverflowException
Convert.ToInt32(myValue);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #long #int
ADD COMMENT
Topic
Name
2+6 =