Beispiel #1
0
        public override bool Equals(Object obj)
        {
            AreaArithmeticOperation aao = obj as AreaArithmeticOperation;

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

            return(leftExp.Equals(aao.leftExp) && rightExp.Equals(aao.rightExp) ||
                   leftExp.Equals(aao.rightExp) && rightExp.Equals(aao.leftExp) && base.Equals(obj));
        }
Beispiel #2
0
 public override Expr Substitute(Region toFind, Expr toSub)
 {
     return(theRegion.Equals(toFind) ? toSub : this);
 }