Method GetHashCode GetHashCode() Generates a hash code suitable for using in a HashSet or Dictionary. Declaration public override int GetHashCode() Returns Type Description int Returns a hash code suitable for using in a HashSet or Dictionary. Overrides ValueType.GetHashCode()