GetHashCode Method GetHashCode() Serves as the default hash function. Declaration public override int GetHashCode() Returns int A hash code for the current object. Overrides object.GetHashCode()