Esempio 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));
 }
Esempio 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));
 }