The hash codes produced by GetHashCode() method for built-in and common C# types from the System namespace are shown below.
Boolean
1 if value is true, 0 otherwise.
Byte, UInt16, Int32, UInt32, Single
Value (if necessary casted to Int32).
SByte
((int)m_value ^ (int)m_value << 8);
Char...