michalsimon
3/19/2016 - 11:18 AM

Checked Block

Checked Block

// throw OverflowException 
checked
{
  int big = 1000000;
  short small = (short)big;
}