public override bool Equals(object obj) { return(obj != null && obj.ToString() == ToString() && obj is Add add && ContainedVariables.SetEquals(add.ContainedVariables) && Arguments.SequenceEqual(add.Arguments)); }
public override bool Equals(object obj) { return(obj != null && obj.ToString() == ToString() && obj is Multiply mul && ContainedVariables.SetEquals(mul.ContainedVariables) && Arguments.SequenceEqual(mul.Arguments)); }