The
.Equals(object ...)
method will do what you need:
foo.Equals(bar)
It compares the references for reference types. See:
http://msdn.microsoft.com/en-us/library/bsc2ak47.aspx[
^] for more info.
[Self-edit]: Decided to start writing in a language that is recognizably English, that way people looking at my answer might actually be able to read it :-).