Method GetHashCode GetHashCode() Generates a hash suitable for use with containers like HashSet and Dictionary. Declaration public override int GetHashCode() Returns Type Description int A hash suitable for use with containers like HashSet and Dictionary. Overrides ValueType.GetHashCode()