示例#1
0
        public override bool Equals(object other)
        {
            var otherNode = other as IdentifierListNode;

            if (null == otherNode)
            {
                return(false);
            }

            return(EqualityComparer <ImperativeNode> .Default.Equals(LeftNode, otherNode.LeftNode) &&
                   EqualityComparer <ImperativeNode> .Default.Equals(RightNode, otherNode.RightNode) &&
                   Optr.Equals(otherNode.Optr));
        }
示例#2
0
        public override bool Equals(object other)
        {
            if (null == LeftNode || null == RightNode)
            {
                return(false);
            }

            var otherNode = other as BinaryExpressionNode;

            if (null == otherNode)
            {
                return(false);
            }

            return(LeftNode.Equals(otherNode.LeftNode) &&
                   Optr.Equals(otherNode.Optr) &&
                   RightNode.Equals(otherNode.RightNode));
        }