السلام عليكم ورحمة الله وبركاته
ما الفرق يين الكودين التاليين
try
{
result = checked((int)(lhs + rhs));
}
catch (OverflowException e)
{
// Handle overflow exception here.
}try
{
result = (int)(lhs + rhs);
}
catch (OverflowException e)
{
// Handle overflow exception here.
}فما فائدة وجود checked
