Class HashCodeHelpers
Provides helper functions for the HashCode struct.
public static class HashCodeHelpers
- Inheritance
-
HashCodeHelpers
- Inherited Members
Methods
Combine<T>(IEnumerable<T>)
Generates a hash code produced by the combination of the hash code of each individual element in the provided collection.
public static HashCode Combine<T>(IEnumerable<T> elements)
Parameters
elementsIEnumerable<T>The elements whose hash codes to combine into the resulting hash code.
Returns
- HashCode
The HashCode that contains the elements that were hashed and had their hash codes combined.
Type Parameters
TThe type of the elements in the collection.