Overflow Protection
To handle binary arithmetic operation overflow you should use OverflowProtection.
try
{
var expression = new Expression($"{int.MaxValue} + 1", ExpressionOptions.OverflowProtection);
}
catch (OverflowException ex) { }
To handle binary arithmetic operation overflow you should use OverflowProtection.
try
{
var expression = new Expression($"{int.MaxValue} + 1", ExpressionOptions.OverflowProtection);
}
catch (OverflowException ex) { }