How is GetHashCode() implemented for Int32?

Esteban Araya picture Esteban Araya · Oct 8, 2010 · Viewed 12.8k times · Source

I've been looking all over the place, but I can't find anything. Can anyone shed some light on this?

Answer

Michael Stum picture Michael Stum · Oct 8, 2010

According to Reflector:

public override int GetHashCode()
{
    return this;
}

Makes sense, does it?