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