Mega Code Archive

 
Categories / C# Book / 01 Language Basics
 

0062 Turn on the overflow checking by compiling

To do the overflow checking by default, you can compile the source code with /checked+ option. C:\g>csc /checked+ Program.cs Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1 Copyright (C) Microsoft Corporation. All rights reserved.