System.Xml.Xsl.IlGen.XmlILOptimizerVisitor.CanFoldArithmetic C# (CSharp) Method

CanFoldArithmetic() private method

Return true if arithmetic operation "opType" can be computed over two literal operands without causing an overflow or divide by zero exception.
private CanFoldArithmetic ( QilNodeType opType, QilLiteral left, QilLiteral right ) : bool
opType QilNodeType
left System.Xml.Xsl.Qil.QilLiteral
right System.Xml.Xsl.Qil.QilLiteral
return bool
        private bool CanFoldArithmetic(QilNodeType opType, QilLiteral left, QilLiteral right) {
            return (FoldArithmetic(opType, left, right) is QilLiteral);
        }
XmlILOptimizerVisitor