Tag: overloaded operators

Beware overloaded operators in .net (for java programmers)

Beware overloaded operators in .net (for java programmers)

| June 6, 2013 | Reply

The following screenshot will be enough to make a fool of myself. As one can see the to variable is NULL. Why am I inside the if body then? I don’t know. I tried all kinds of variations of this piece of .. code. It turns out that the == operator is overloaded for the […]

Read More