HashCodeGetHashCodeT Method (T, HashCodeGetHashCodeFunctionT) |
Gets a hash code for the items in the specified two dimensional array. The hash code is computed by using
Combine(Int32) to combine the hash codes of the items in the array. If the array is null, the
returned hash code is zero.
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 GetHashCode<T>(
T[,] array,
HashCodeGetHashCodeFunction<T> hashCodeFunction
)
Public Shared Function GetHashCode(Of T) (
array As T(,),
hashCodeFunction As HashCodeGetHashCodeFunction(Of T)
) As Integer
public:
generic<typename T>
static int GetHashCode(
array<T,2>^ array,
HashCodeGetHashCodeFunction<T>^ hashCodeFunction
)
static member GetHashCode :
array : 'T[,] *
hashCodeFunction : HashCodeGetHashCodeFunction<'T> -> int
Parameters
- array
- Type: T
The two dimensional array for which to get the hash code. - hashCodeFunction
- Type: AGI.Foundation.InfrastructureHashCodeGetHashCodeFunctionT
A function for computing the hash code for a given item in the collection.
Type Parameters
- T
- The type of item in the array.
Return Value
Type:
Int32The hash code.
See Also