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