Method GetHashCode GetHashCode() Serves as the default hash function. Declaration public override int GetHashCode() Returns Type Description int The calculated hash code. Overrides ValueType.GetHashCode()