Equals()
is same as the object upon which this method is invoked CS-W1086Equals()
method is used to check if 2 entities are the same. However, in this case, the argument supplied to this method is the same as the object upon which this method is invoked and will always evaluate to true
. It is recommended that you fix this issue by passing in an appropriate argument.
foo.Equals(foo);
foo.Equals(bar);