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 code generated from this object's fields. Overrides ValueType.GetHashCode()