 | HashCodeBuilderGetHashCode Method |
Gets the hash code computed for the fields supplied to this object.
Namespace: Capgemini.CommonObjectUtilsAssembly: Capgemini.CommonObjectUtils (in Capgemini.CommonObjectUtils.dll) Version: 1.3.0.0
Syntaxpublic override int GetHashCode()
Public Overrides Function GetHashCode As Integer
public:
virtual int GetHashCode() override
abstract GetHashCode : unit -> int
override GetHashCode : unit -> int
Return Value
Type:
Int32The computed hash code.
Remarks
Note that this breaks the normal usage of GetHashCode because it doesn't return the hash code
of this object, it returns the calculated hash code of the fields that have been appended.
This means that objects of this class should never be put into hash sets or other collections that rely
on the GetHashCode contract.
See Also