using System;
//no range check by default
byte b1 = 200;
byte b2 = 100;
byte b3 = (byte)(b1 + b2);
//b3 is 44 (300 - 256)
Console.WriteLine(b3);
unchecked {
byte b4 = (byte)(b1 + b2);
//b4 is 44
Console.WriteLine(b4);
}
checked {
byte b5 = (byte)(b1 + b2); //<-Error
Console.WriteLine(b5);
}