DefinitionalObjectGetDefinitionHashCodeT Method (T) |
Gets a hash code safely.
If the specified object is , a valid hash code is still returned.
Namespace:
AGI.Foundation.Infrastructure
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public static int GetDefinitionHashCode<T>(
T o
)
Public Shared Function GetDefinitionHashCode(Of T) (
o As T
) As Integer
public:
generic<typename T>
static int GetDefinitionHashCode(
T o
)
static member GetDefinitionHashCode :
o : 'T -> int
Parameters
- o
- Type: T
The object for which to obtain the hash code.
Type Parameters
- T
- The type of o.
Return Value
Type:
Int32The hash code of the object, or a default value if
o is
.
See Also