This is a mirror of official site: http://jasper-net.blogspot.com/

Why doesn’t this cause an Exception ?

| Wednesday, January 19, 2011
I was trying to run the below code snippet in Visual Studio 2010 .

int Number1 = 320000;
int Number2 = 320000;
int Number3 = Number1  * Number2 ;
MessageBox.Show(Number3.ToString());

The code resulted in the value – 797966336 without being showing the error or the correct value .

Just found that If you want an exception to be raised on this occassion , then use the following 2 options as below .

Read more: Ginktage

Posted via email from Jasper-net

0 comments: