GetHashCode Method GetHashCode() Serves as the default hash function. Declaration public override readonly int GetHashCode() Returns Type Description System.Int32 A hash code for the current object. Overrides ValueType.GetHashCode()