I've been looking all over the place, but I can't find anything. Can anyone shed some light on this?
According to Reflector:
public override int GetHashCode()
{
return this;
}
Makes sense, does it?
Best way to hash 32 bit value to 32 bit is not to invent wheel, use value itself. Very fast, no collisions, indeed a perfect way.
来源:https://stackoverflow.com/questions/3893782/how-is-gethashcode-implemented-for-int32