AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter02/Listing02.22.ACheckedBlockExample.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_22
{
    public class Program
    {
        public static void Main()
        {
            checked
            {
                // int.MaxValue equals 2147483647
                int n = int.MaxValue;
                n = n + 1;
                System.Console.WriteLine(n);
            }
        }
    }
}
