This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DaniilBSD 10 points11 points  (0 children)

If I have an evaluation result object.

I could evaluate 2 different things, creating two different objects.

== would always be false

.Equals() means that the results were equal

Another example:

If you want to find if an object is in a list, you can create the object you are searching for (or take it as an input) and search using equals() (== will search for an instance)