Method GetHashCode GetHashCode() A representative hash code. Declaration public override int GetHashCode() Returns Type Description int A number that is guaranteed to be the same when generated from two objects that are the same. Overrides ValueType.GetHashCode()