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)); }
public override Expr Substitute(Region toFind, Expr toSub) { return(theRegion.Equals(toFind) ? toSub : this); }