HashCodeGetHashCodeT Method (IEnumerableT) |
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.2.419.0 (24.2.419.0)
Syntax public static int GetHashCode<T>(
IEnumerable<T> items
)
Public Shared Function GetHashCode(Of T) (
items As IEnumerable(Of T)
) As Integer
public:
generic<typename T>
static int GetHashCode(
IEnumerable<T>^ items
)
static member GetHashCode :
items : IEnumerable<'T> -> int
Parameters
- items
- Type: System.Collections.GenericIEnumerableT
The sequence of items for which to get the hash code.
Type Parameters
- T
- The type of item in the sequence.
Return Value
Type:
Int32The hash code.
See Also