DefinitionalObjectGetCollectionHashCodeT Method (IEnumerableT) |
Computes a hash code from the items in an enumerable collection.
The hash code computed is order dependent, that is, another collection
with the same items in a different order will have a different hash code.
Namespace:
AGI.Foundation.Infrastructure
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public static int GetCollectionHashCode<T>(
IEnumerable<T> collection
)
Public Shared Function GetCollectionHashCode(Of T) (
collection As IEnumerable(Of T)
) As Integer
public:
generic<typename T>
static int GetCollectionHashCode(
IEnumerable<T>^ collection
)
static member GetCollectionHashCode :
collection : IEnumerable<'T> -> int
Parameters
- collection
- Type: System.Collections.GenericIEnumerableT
The collection containing the items for which to compute the hash code.
Type Parameters
- T
- The type of item in the collection.
Return Value
Type:
Int32The hash code.
See Also