The hash codes produced by GetHashCode()
method for built-in and common C# types from the System
namespace are shown below.
1 if value is true, 0 otherwise.
Value (if necessary casted to Int32).
((int)m_value ^ (int)m_value << 8);
(int)m_value ^ ((int)m_value << 16);
((int)((ushort)m_value) ^ (((int)m_value) << 16));
Xor between lower and upper 32 bits of 64 bit number
(unchecked((int)((long)m_value)) ^ (int)(m_value >> 32));
((int)m_value) ^ (int)(m_value >> 32);
((((int *)&dbl)[0]) & 0xFFFFFFF0) ^ ((int *)&dbl)[1];
RuntimeHelpers.GetHashCode(this);