Click or drag to resize

DefinitionalObjectGetDefinitionHashCode 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.1.418.0 (24.1.418.0)
Syntax
public int GetDefinitionHashCode()

Return Value

Type: Int32
The hash code.

Implements

IEquatableDefinitionGetDefinitionHashCode
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