Yateen Thakkar, Syntel India in his article posted on 12/2/2004; has described a way to enable Arithmetic Overflow Exception in C#.
There is a much shorter and simpler to enable Arithmetic Overflow Exception check.
Just go to C# project's properties. Under Configuration Properties>>Build>> set "Check for arithematic over flow/underflow" to true.
Now the CLR will manage the check itself.
0 comments
Hide comments