The official documentation is pretty laconical and doesn't explain it, so I believe that if the objects are not primitives, then their references will be compared.
That is, two references to the same object would evaluate as being equal; two clones of a same object would evaluate as being different. Unless you overload the Equals()
instance method of the class(es) those objects belong to, or the ==
operator for said class(es).
Also see Reed Copsey's answer.