What is the difference between a == b and a.Equals(b)?
a == b
a.Equals(b)
== checks the Object reference, basically it compares the hashcodes. Equals uses the contents in the object. Remember, we have to override the .equals method accordingly in our class.
==
.equals