DefinitionalObject.GetDefinitionHashCode<T> Method (T) |
Gets a hash code safely.
If the specified object is null, a valid hash code is still returned.
Namespace:
AGI.Foundation.Infrastructure
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic 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
null.
See Also