private bool TryEvalInt32(BinaryOperator bop, Int32 leftVal, Int32 rightVal, out long value) { int result; if (EvaluateArithmeticWithOverflow.TryBinary(bop.ToExpressionOperator(), leftVal, rightVal, out result)) { value = result; return(true); } value = default(long); return(false); }
private bool TryEvalUInt32(BinaryOperator bop, long leftVal, long rightVal, out uint value) { return(EvaluateArithmeticWithOverflow.TryBinary(bop.ToExpressionOperator(), leftVal, rightVal, out value)); }