helloooo,
Actually, i want to know something. please read this code...
using System;
using System.Collections.Generic;
using System.Text;
namespace temp
{
class Program
{
static void Main(string[] args)
{
Int16 i = Int16.MaxValue;
Console.WriteLine("Simple: " + (i ));
unchecked
{
Console.WriteLine("Unchecked: " + (i + 1));
}
checked
{
try
{
Console.WriteLine(i + 1);
}
catch (Exception ee)
{
Console.WriteLine("Error in Checked Block");
}
}
}
}
}
this code not give any exception. please any body tell me why? But if i use Int32 then it will generate exception.
Thank's in advance....