Trap Arithmetic Overflow Exception - Simpler Way

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.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish