示例#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));
 }
示例#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));
 }