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