Click or drag to resize

HashCodeGetHashCodeT Method (IEnumerableT, HashCodeGetHashCodeFunctionT)

Gets a hash code for the items in the specified sequence. The hash code is computed by using Combine(Int32) to combine the hash codes of the items in the sequence. If items is null, the returned hash code is zero.

Namespace:  AGI.Foundation.Infrastructure
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public static int GetHashCode<T>(
	IEnumerable<T> items,
	HashCodeGetHashCodeFunction<T> hashCodeFunction
)

Parameters

items
Type: System.Collections.GenericIEnumerableT
The sequence of items 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 sequence.

Return Value

Type: Int32
The hash code.
See Also