IEquatableDefinitionGetDefinitionHashCode Method |
Gets a hash code representing the definition of this object.
Namespace:
AGI.Foundation.Infrastructure
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax int GetDefinitionHashCode()
Function GetDefinitionHashCode As Integer
int GetDefinitionHashCode()
abstract GetDefinitionHashCode : unit -> int
Return Value
Type:
Int32The hash code.
Remarks
This method is very similar to
GetHashCode except that it explicitly includes
the "definition" of the object even if the object does not typically act like a value. The definition of
an object typically includes all of the fields of the object. The value returned by this method should
NOT change. This means that two objects for which
IsSameDefinition(Object) returns
will not necessarily have the same hash code if one or the other was changed after the hash code was first
obtained.
See Also